360 likes | 491 Views
MAT 2720 Discrete Mathematics. Section 8.5 Representations of Graphs. http://myhome.spu.edu/lauw. Goals. In order to use computers to analyze graphs, we need formal representations Represent Graphs with Matrices Incidence Matrix Adjacency Matrix. Incidence Matrix. Adjacency Matrix.
E N D
MAT 2720Discrete Mathematics Section 8.5 Representations of Graphs http://myhome.spu.edu/lauw
Goals • In order to use computers to analyze graphs, we need formal representations • Represent Graphs with Matrices • Incidence Matrix • Adjacency Matrix
Adjacency Matrix i-jth entry = no. of edges incident on vertex i and j
Question… Is there a meaning for An ?
Answer… Yes…when the graph is simple.
Example 1 No. of path from vertex a to vertex c …. … with length 2
Example 1 No. of path from vertex c to vertex c …. … with length 2
Example 1 … with length 4 No. of path from vertex a to vertex e ….
Theorem If A is the adjacency matrix of a simple graph, the ijth entry of An is equal to the number of paths of length n from vertex i to vertex j, n=1,2,… Proof: Induction on n
MAT 2720Discrete Mathematics Section 8.6 Isomorphisms of Graphs http://myhome.spu.edu/lauw
Goals • Develop the notion of graphs with “different” structures. • Develop the notion of graphs with the “same” structure. • Isomorphisms of Graphs
Example 1 The following 2 graphs have the “same” structure.
Ideas 1. No. of vertices and edges are the same.
Ideas 1. No. of vertices and edges are the same. 2. The connections between vertices are the same.
Observations f is 1-1, onto guarantees the two graphs have the same number of vertices.
Observations g is 1-1, onto guarantees the two graphs have the same number of edges.
Observations g((x,y))=(f(x),f(y)) guarantees the connections between vertices are the same.
Observations g((x,y))=(f(x),f(y)) guarantees the connections between vertices are the same.
To prove that 2 graphs are isomorphic, it suffices to … … exhibit a pair of isomorphisms f and g.
Example 1 It remains to show that
One Last Observation … What about their adjacent matrices? How are they related?
One Last Observation … What about their adjacent matrices? How are they related?
Theorem Two graphs are isomorphic if and only if for some ordering of their vertices, their adjacent matrices are equal.
Facts • To show that 2 graphs are isomorphic could be difficult (either use the definition or adjacent matrices). • To show that they are NOT isomorphic is relatively easier.
Invariants If 2 graphs are isomorphic, they have some common properties (invariants). 1. Same no. of vertices and edges. 2. (v)=(f(v)) (“has a vertex of degree k”) 3. Length of corresponding simple cycles are the same (“has a simple cycle of length k”).
Invariants 2 graphs are NOT isomorphic if they do not share any one of the invariants above.