Why Does This Adjacency Matrix Theorem Work?

  • Context: Undergrad 
  • Thread starter Thread starter physicsguy101
  • Start date Start date
  • Tags Tags
    Matrix Theorem Work
Click For Summary
SUMMARY

The theorem regarding adjacency matrices states that if A is the adjacency matrix of a graph G, then the (i, j)-entry of A^r represents the number of distinct r-walks from vertex v_i to vertex v_j. This is established through the properties of matrix multiplication, where A^2 counts the number of paths of length 2, and the inductive argument shows that A^r can be derived from A^{r-1}A. The mathematical foundation relies on the binary nature of adjacency entries, where a_{ij} is 1 if there is a direct path between vertices i and j, and 0 otherwise.

PREREQUISITES
  • Understanding of graph theory concepts, specifically vertices and paths.
  • Familiarity with matrix operations, particularly matrix multiplication.
  • Knowledge of adjacency matrices and their properties.
  • Basic grasp of mathematical induction as a proof technique.
NEXT STEPS
  • Study the properties of adjacency matrices in graph theory.
  • Learn about matrix exponentiation and its applications in counting paths.
  • Explore the concept of r-walks in graphs and their significance.
  • Investigate the use of inductive proofs in mathematical reasoning.
USEFUL FOR

Students and professionals in mathematics, computer science, and data science who are interested in graph theory, particularly those studying algorithms related to pathfinding and network analysis.

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!
 
Physics 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:

Similar threads

  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 77 ·
3
Replies
77
Views
6K
  • · Replies 10 ·
Replies
10
Views
2K