Incidence matrix
In mathematics, an incidence matrix is a logical matrix that shows the relationship between two classes of objects, usually called an incidence relation. If the first class is X and the second is Y, the matrix has one row for each element of X and one column for each mapping from X to Y. The entry in row x and column y is 1 if the vertex x is part of the mapping that corresponds to y, and 0 if it is not. There are variations; see below.
Graph theory
Incidence matrix is a common graph representation in graph theory. It is different to an adjacency matrix, which encodes the relation of vertex-vertex pairs.Undirected and directed graphs
Image:Labeled [undirected graph.svg|thumb|250px|An undirected graph.]In graph theory an undirected graph has two kinds of incidence matrices: unoriented and oriented.
The unoriented incidence matrix of an undirected graph is a matrix B, where n and m are the numbers of vertices and edges respectively, such that
For example, the incidence matrix of the undirected graph shown on the right is a matrix consisting of 4 rows and 4 columns :
If we look at the incidence matrix, we see that the sum of each column is equal to 2. This is because each edge has a vertex connected to each end. The incidence matrix of a directed graph is a matrix B where n and m are the number of vertices and edges respectively, such that The oriented incidence matrix of an undirected graph is the incidence matrix, in the sense of directed graphs, of any orientation of the graph. That is, in the column of edge e, there is one 1 in the row corresponding to one vertex of e and one −1 in the row corresponding to the other vertex of e, and all other rows have 0. The oriented incidence matrix is unique up to negation of any of the columns, since negating the entries of a column corresponds to reversing the orientation of an edge. The unoriented incidence matrix of a graph G is related to the adjacency matrix of its line graph L by the following theorem: where A is the adjacency matrix of the line graph of G, B is the incidence matrix, and Im is the identity matrix of dimension m. The discrete Laplacian is obtained from the oriented incidence matrix B by the formula The integral cycle space of a graph is equal to the null space of its oriented incidence matrix, viewed as a matrix over the integers or real or complex numbers. The binary cycle space is the null space of its oriented or unoriented incidence matrix, viewed as a matrix over the two-element field. Signed and bidirected graphsThe incidence matrix of a signed graph is a generalization of the oriented incidence matrix. It is the incidence matrix of any bidirected graph that orients the given signed graph. The column of a positive edge has a 1 in the row corresponding to one endpoint and a −1 in the row corresponding to the other endpoint, just like an edge in an ordinary graph. The column of a negative edge has either a 1 or a −1 in both rows. The line graph and Kirchhoff matrix properties generalize to signed graphs.MultigraphsThe definitions of incidence matrix apply to graphs with loops and multiple edges. The column of an oriented incidence matrix that corresponds to a loop is all zero, unless the graph is signed and the loop is negative; then the column is all zero except for ±2 in the row of its incident vertex.Weighted graphsA weighted graph can be represented using the weight of the edge in place of a 1. For example, the incidence matrix of the graph to the right is:
|