The adjacency matrix of a finite simple graph has entry when vertices are adjacent and zero otherwise.
For a directed or weighted graph, entries instead record directed adjacency or edge weights.
For every nonnegative integer , the entry equals the number of length- walks from to . This follows by induction, since matrix multiplication appends one adjacent vertex to each walk.

Ancestors (5)

  1. Graph theory
  2. Foundations of mathematics
  3. Area of mathematics
  4. Mathematics
  5. Home

Synonyms (1)

Discussion (0) New discussion

There are no discussions about this article yet.

Articles by others on the same topic (1)

An adjacency matrix is a square matrix used to represent a finite graph. It indicates whether pairs of vertices (or nodes) in the graph are adjacent (i.e., connected directly by an edge) or not. Here's how it works: 1. **Matrix Structure**: The size of the adjacency matrix is \( n \times n \), where \( n \) is the number of vertices in the graph. Each row and column of the matrix corresponds to a vertex in the graph.