Graph Theory: Matrix representation of graphs

3,451 views 11 slides Dec 22, 2020
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

To be used for the lecture of CSE 4803: Graph Theory


Slide Content

Matrix representation of Graphs
A.B.M. AshikurRahman

Topics
•Incidence matrix
•Circuit matrix
•Fundamental circuit matrix
•Cut-set Matrix
•Path matrix
•Adjacency matrix

Incidence Matrix
•vertex by edge matrix

Incidence Matrix (observations)
•Since every edge is incident on exactly two vertices, each column of A has exactly
two l′s.
•The number of l′s in each row equals the degree of the corresponding vertex.
•A row with all 0′s, therefore, represents an isolated vertex.
•Parallel edges in a graph produce identical columns in its incidence matrix.
•If a graph G is disconnected and consists of two components g
1and g
2, the incidence
matrix A(G) of graph G can be written in a block-diagonal form as
•Permutation of any two rows or columns in an incidence matrix simply corresponds
to relabeling the vertices and edges of the same graph.

Circuit Matrix
•B(G) is cby e matrix, where c is the number of circuits
•four different circuits, {a, b}, {c, e, g}, {d, f, g}, and {c, d, f, e}

Circuit Matrix(observations)
•A column of all zeros corresponds to a noncircuitedge (i.e., an edge that does not belong to any circuit).
•Each row of B(G) is a circuit vector.
•Unlike the incidence matrix, a circuit matrix is capable of representing a self-loop—the corresponding
row will have a single 1.
•The number of 1’s in a row is equal to the number of edges in the corresponding circuit.
•If graph G is separable (or disconnected) and consists of two blocks (or components) g1 and g2, the
circuit matrix B(G) can be written in a block-diagonal form as
•Permutation of any two rows or columns in a circuit matrix simply corresponds to relabeling the circuits
and edges.
•Two graphs G1 and G2 will have the same circuit matrix if and only if G1 and G2 are 2-isomorphic

Fundamental Circuit Matrix

Cut –set Matrix
Cut-setby edgematrix
Observations:
•a permutation of rows or columns in a cut-set matrix corresponds
simply to a renaming of the cut-sets and edges, respectively.
•A column with all 0’s corresponds to an edge forming a self-loop.
•Parallel edges produce identical columns in the cut-set matrix
•In a nonseparablegraph, every set of edges incident on a vertex is a
cut-set. Therefore, every row of incidence matrix is included as a
row in the cut-set matrix.
•For a separable graph, the incidence matrix of each block is
contained in the cut-set matrix.

Path Matrix
the path matrix for (x, y) vertices is P(x, y)= [p
ij], where
Observations:
•A column of all 0’s corresponds to an edge that does not lie in any
path between x and y.
•A column of all 1’s corresponds to an edge that lies in every path
between x and y.
•There is no row with all 0’s.
•The ring sum of any two rows in P(x, y) corresponds to a circuit or
an edge-disjoint union of circuits

Adjacency Matrix
•Vertex by vertex matrix

Exercise
For the given graph, find the-
•Incidence matrix
•Circuit matrix
•Fundamental circuit matrix (bold lines depict a spanning tree)
•Cut-set matrix