Isomorphic Graphs
Contents
7. Isomorphic Graphs#
We say that two graphs are isomorphic if they have the same network structure. Graphs
Definition
An isomorphsim between two graphs
such that
If an isomorphism exists between two graphs, we say that the graphs are isomorphic.
7.1. Example#
Find an isomorphism between the following two graphs.
Solution
These two graphs are isomorphic under the isomorphism
7.2. Question 1#
1. Find an isomorphism between the following two directed graphs:
2. Find a subgraph of the egg-laying circuit isomorphic to the directed graph below.
3. Use NetworkX functions subgraph
and is_isomorphic
to confirm your answer to 2.
7.3. Example#
How many simple directed graphs are there with 3 nodes and two edges?
Solution
There are 4. Any other simple directed digraph with 3 nodes and 2 edges is isomorphic to one of these.
7.4. Question 2#
Draw all simple directed graphs with 3 nodes and 3 edges.
7.4.1. Isomorphism from Adjacency Matrix#
Given two graphs
There are
7.5. Question 3#
Write down all
7.6. Graph Invariants#
Fortunately, the problem of checking whether two graphs are not isomorphic is often easier. For example, if
Some examples of graph invariants:
Number of nodes
Number of edges
Maximum node degree
Number of triangle (3-cycle) subgraphs
Number of connected components
7.7. Question#
1. Show that the following pairs of graphs are not isomorphic by finding an invariant that they do not share.
2. Write down two more graph invariants.