4

I don't see any real reason why we would use an AM to represent a graph, beside visual appeal and ease. Generally, we would perform matrix operations on Matrices like |A|, Transpose and loads of other things but that magic doesn't seem to add up to what I am looking at, AM. Anyone care to explain or give me some intuition so I may respect AM a bit more and use it to study the graph at hand purely by playing around with the numbers. Obviously, you get the point.

Grigory M
  • 17,478

1 Answers1

3

Here is one use of adjacency matrices. Let $G=(V,E)$ be a graph and let $A(G)=\{a_{ij}\}$ be its adjacency matrix. Then the $ij$-th entry of $A(G)^n$ is the number of walks of length $n$ starting at the $i$-th vertex that end at the $j$-th vertex.

For large $n$, it's inefficient to calculate the $n$-th power of $A(G)$, so we find its eigenvalues to diagonalize $A(G)$: $$A(G)=P^TDP$$ so that $A(G)^n=P^TD^n P$ can be easily calculated.

Kuai
  • 1,493