Mathematics · Glossary

What is Graph, adjacency matrix?

Also known as: graph · adjacency matrix

Definition 30.11 High School Mathematics · Chapter 30 — Matrices and Graphs

A graph consists of vertices 1,2,,n1, 2, \dots, n and edges joining certain pairs of vertices (ordered pairs for a directed graph). Its adjacency matrix is the n×nn \times n matrix MM with mij=1m_{ij} = 1 if there is an edge from ii to jj, and 00 otherwise. A walk of length kk from ii to jj is a sequence of kk consecutive edges leading from ii to jj.

M = pmatrix 0 & 1 & 1\\ 0 & 0 & 1\\ 1 & 0 & 0 pmatrix A directed graph and its adjacency matrix (): m_ij = 1 exactly when there is an edge from i to j.
M=(011001100)M = \begin{pmatrix} 0 & 1 & 1\\ 0 & 0 & 1\\ 1 & 0 & 0 \end{pmatrix} A directed graph and its adjacency matrix (Exercise 30.6): mij=1m_{ij} = 1 exactly when there is an edge from ii to jj.
Read in context →