Javatpoint Logo
Javatpoint Logo

What is Incidence matrix in Discrete mathematics

The incidence matrix can be described as a matrix that shows the graph. That means the incidence matrix is used to draw a graph. We will use the symbol [Ac] to represent the incidence matrix. Just like all other matrices, this matrix also contains rows and columns.

In the graph, the number of nodes is indicated with the help of rows of incidence matrix [Ac], and the number of branches is indicated with the help of columns of that matrix. If the given incidence matrix contains the n number of rows, then it will show that the graph of this matrix has n number of nodes. Similarly, if the given incidence matrix contains the m number of columns, then it will show that the graph of this matrix has the m number of branches.

What Is Incidence Matrix In Discrete Mathematics

The above graph is a directed graph that has 6 branches and 4 nodes. So we can say that this graph contains the 6 columns and 4 rows for the incidence matrix. The incidence matrix will always take the entries as -1, 0, +1. The incidence matrix is always analogous to the KCL, which stands for the Kirchhoff Current Law. Thus, the following things can be derived from the KCL:

Types of Branch Value
Incoming branch to kth node -1
Outcome branch to kth node +1
Others 0

Steps to Construct Incidence matrix

The incidence matrix can be drawn with the help of some steps, which are described as follows:

  1. We will write the +1 if there is an outgoing branch in the kth node.
  2. We will write the -1 if there is an incoming branch in the kth node.
  3. We will write 0 in all the other branches.

Examples of Incidence matrix

In this example, we have a directed graph, and we have to draw the incidence matrix of this graph.

What Is Incidence Matrix In Discrete Mathematics

The incidence matrix of the above graph is described as follows:

[AC] =

Branches a b c d e f
Nodes
1 1 -1 0 0 1 0
2 -1 0 -1 0 0 -1
3 0 0 0 1 -1 1
4 0 1 1 -1 0 0

Reduced Incidence matrix

If we delete any arbitrary row from the given incidence matrix, in this case, the newly created matrix will be known as the reduced incidence matrix. The newly created matrix or reduced matrix is indicated by the symbol [A]. The order of this reduced incidence matrix will be (n-1)*b, where b is used to indicate the number of branched and n is used to indicate the number of nodes. The reduced incidence matrix for the above incidence matrix is described as follows:

[A] =

Branches a b c d e f
Nodes
1 1 -1 0 0 1 0
2 -1 0 -1 0 0 -1
3 0 0 0 1 -1 1

In this matrix, we have deleted node no 4 of the incidence matrix [AC].

Example of Reduced incidence matrix

To show the example of a reduced incidence matrix, we will consider an incidence graph. Now we have to write the reduced incidence matrix for this incidence graph.

What Is Incidence Matrix In Discrete Mathematics

Solution:

We have to first draw an incidence matrix of the given graph to draw the reduced incidence matrix. The incidence matrix of the above graph is described as follows:

[AC] =

Branches a B C d e f
Nodes
1 -1 1 0 0 1 0
2 1 0 -1 0 0 1
3 0 0 0 1 -1 -1
4 0 -1 1 -1 0 0

Now we will draw the reduced incidence matrix of this matrix, which is described as follows:

[A] =

Branches a B c d e f
Nodes
1 -1 1 0 0 1 0
3 0 0 0 1 -1 -1
4 0 -1 1 -1 0 0

In this matrix, we have deleted node no 2 of the incidence matrix [AC].

Example of Incidence matrix

Example: In this example, we have to represent the graph shown in the following image with an incidence matrix.

What Is Incidence Matrix In Discrete Mathematics

Solution: The above graph is an undirected graph, and the pseudo graph of this graph is described as follows:

What Is Incidence Matrix In Discrete Mathematics

The incidence matrix of this graph is described as follows:

Edges e1 e2 e3 e4 e5 e6
Vertices
v1 1 1 0 0 0 0
v2 0 0 1 1 0 1
v3 0 0 0 0 1 1
v4 1 0 1 0 0 0
v5 0 1 0 1 1 0

With the help of incidence matrices, we are also able to represent the multiple edges and loops. In the incidence matrix, the columns are used to show the multiple edges with identical entries. This is because these edges are incident with the same vertices pair. We can indicate the loops with the help of columns with exactly one entry equal to 1, which corresponds to the vertex that is incident with this loop.

Important Points:

There are some important points that we should remember while learning about the incidence matrix, which is described as follows:

  • We will check the sum of columns if we want to check the correctness of any created incidence matrix.
  • The created incidence matrix [AC] will be correct if the sum of columns is zero. Otherwise, the incidence matrix will be incorrect.
  • We can only use the directed graph to apply the incidence matrix.
  • The number of entries in a row except the entry 0 tells us about the number of branches that are linked to that node. The number of branches is also known as the degree of that node.
  • The (n-1) is used to show the rank of complete incidence matrix, where n is used to indicate the number of nodes of the graph.
  • The (n*b) is used to show the order of incidence matrix, where b is used to indicate the number of branches of a graph.
  • If we want to draw the complete incidence matrix, then we can use the reduced incidence matrix to do this. So we will simply add +1, 0, or -1 on the condition in such a way that the sum of each column should be zero.






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA