Incidence matricesAnother common way to represent graphs is to use incidence matrices. Let be an undirected graph. Suppose that are the vertices and are the edges of G. Then the incidence matrix with respect to this ordering of V and E is the matrix , where .
Example. Represent the graph shown in Figure below with an incidence matrix.
Solution: e_{1 }e_{2 }e_{3 }e_{4 }e_{5 }e_{6}
Incidence matrices can also be used to represent multiple edges and loops. Multiple edges are represented in the incidence matrix using columns with identical entries, since these edges are incident with the same pair of vertices. Loops are represented using a column with exactly one entry equal to 1, corresponding to the vertex that is incident with this loop.
Example. Represent the pseudograph shown in Figure below using an incidence matrix.
Solution: e_{1 }e_{2 }e_{3 }e_{4 }e_{5 }e_{6} e_{7} e_{8}
Date: 20150102; view: 1115
