Why Does This Adjacency Matrix Theorem Work?

AI Thread Summary
The theorem regarding the adjacency matrix A of a graph G states that the (i, j)-entry of Ar represents the number of distinct r-walks from vertex vi to vertex vj. In the adjacency matrix, a_{ij} is 1 if there is a direct path from vertex i to vertex j, and 0 otherwise. The calculation of A^2 involves summing products of entries, which effectively counts the number of paths of length 2 from i to j. This inductive reasoning extends to higher powers, where A^r sums the paths of length r-1 from i to k and then from k to j. The discussion clarifies the mathematical reasoning behind the theorem, enhancing understanding of graph theory concepts.
physicsguy101
Messages
18
Reaction score
0
I'm curious as to why the following theorem always works with a graph of vertices and the number of steps between the vertices when placed into an adjacency matrix.


If A is the adjacency matrix of a graph G (with vertices v1,…, vn), the (i, j)-entry of Ar represents the number of distinct r-walks from vertex vi to vertex vj in the graph.


If anyone can provide any insight or explanation, I would appreciate it.

The theorem makes sense to me, but I'm just unsure mathematically why exactly it works the way it does.

Thanks!
 
Mathematics news on Phys.org
Your "Ar" is, of course, the power, A^r.

In an adjacency matrix, A, a_{ij} is 1 if i is "adjacent to j- if there is a path from vertex i to vertex j- 0 otherwise. In A^2, (a^2)_{ij}= \sum_k a_{ik}a_{kj}.

Each term in that sum will be either 0 or 1 and 1 only if both a_{ik} and a_{kj} are 1. That is, only if there is a path from vertex i to k and a path from k to j- so there is a path going from i to k and then from k to j- a path from i to j of length 2. That sum, then, counts the number of length 2 paths from i to j.

Since A^r= A^{r-1}A you can apply an inductive argument: (a^{r})_{ij}= \sum_k (a^{r-1})_{ik}a_{kj} sums the number of paths of length r-1 from i to k and then from k to j.
 
HallsofIvy, thank you very much. Your response pretty much summed up what I was looking for (sorry, no pun intended!).

I really appreciate it, and understand the concept much more clearly now. Thanks again.
 
Last edited:
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top