I was studying graph neural networks with this blog and came across a part where it states that if we want to row-normalize the adjacency matrix of a graph, then we multiply the inverse degree matrix to it as such:
$$A \rightarrow D^{-1}A$$
I’ve tried this myself with a toy example, and this does render the rows of the adjacency matrix $A$ to sum to $1$.
Perhaps this is due to my lack of understanding of basic graph theory, but why is this so? Is there a particular relationship between the degree and adjacency matrices of graphs?
Thanks in advance.