You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
This lesson covers how to represent graphs as matrices and how to determine when two graphs are structurally identical (isomorphic). Matrix representations allow graphs to be processed by computers and provide a way to calculate path counts.
For a graph with n vertices, the adjacency matrix is an n×n matrix A where:
Aij={10if there is an edge between vertices i and jotherwise
| Property | Detail |
|---|---|
| Symmetric | For undirected graphs, Aij=Aji |
| Diagonal | Aii=0 for simple graphs (no loops) |
| Row/column sum | Equals the degree of the vertex |
Consider a graph with vertices A, B, C, D and edges AB, AC, BC, CD.
A=0110101011010010
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.