A simple cycle of a particular length is a useful invariant that can be used to show that two graphs are not isomorphic.
Counting paths between vertices:
Let 𝐺 be a graph with adjacency matrix 𝑨 with respect to the ordering v1,v2,..,vn of the vertices of the graph (with directed or undirected edges, with multiple edges and loops allowed).
The number of different paths of length r from v1 to vj , where r is a positive integer, equals the (i,j)th entry of Artheorem
the matrix power to r, then we have the number of possible ways of going from one node to the other
Subgraph:
Given a graph G=(V,E), a subgraph of G is simply a graph G′=(V′,E′) with V′⊆V and E′⊆(V′×V′)∩E.
We denote by G′⊆G
A connected component of graph 𝐺 = (𝑉, 𝐸) is a maximal connected subgraph; that is, it is a subgraph 𝐻 ⊆ 𝐺 that is connected, and any larger subgraph 𝐻’ (satisfying 𝐻’ ≠ 𝐻, 𝐻 ⊆ 𝐻’ ⊆ 𝐺) must be disconnected.
We may similarly define a strongly connected component of a directed graph as a maximal strongly connected subgraph???