Graphs, Networks, Incidence Matrices

May 30, 2019

Graph

Let’s have a directed graphdirected graphs are with arrows; undirected graphs are without

Figure 1. Example Graph with 5 edges labeled black and four nodes labeled black

here we have # of nodes and # of edges . This graph can represent a lot of practical applications such as google maps modelling one location as a node and connect locations by edges, world wide web connecting each computer to another, or chemists might use row reduction to get a clearer picture of what elements go into a complicated reaction. If you have never encountered a graph like this, this may not be important to you. Like in Statistics I think people barely build graph model like such, though they do do trees.

Incidence Matrices

We will use matrices to represent a graph. Each column represents a node, starting left node 1 to right node 4. Each row represents an edge, starting from top edge 1 to bottom edge 5.

-1 means going from and +1 means going to. For example, edge 1(row 1) goees from node 1 to node 2. We see that incidence matrices are sparse, meaning they have many zeros. This is because an edge can only connect two nodes. As the size of graph increases (either # of nodes or # of edges increases), the matrix will become sparser.

Null Space for Incidence Matrices

To find , we solve :

From electrical physics, If the components xi of the vector x describe the electrical potential at the node of the graph, then is a vector describing the difference in potential across each edge of the graph. Except for , solves the equation as well. Thus the basis for isif you suspect there may be other solutions , you can do eliminations to check if there’re other columns are dependent

This is saying potential difference is zero on each edge if each node has the same potential. So and rank . From another perspective, we can check how many rows are independent by looking at loops. Note here we refer to loops in the undirected version of Figure 1.

Figure 2. Undirected version of Figure 1.

We can see edge 1, 2, and 3 form a loop; and edge 3,4,5 form another loop. The minimum number of edges we need to remove to remove these loops are 2If you feel confusing, just remove edge 2 and 5, or 2 and 4, or 1 and 4 etc..

We can also see column dependencies from this. For instance, edge 2 is a linear combination of edge 1 and 3; edge 5 is a linear combination of edge 3 and 4.

Left Null Space for Incidence Matrices

this part of notes may include unclear meanings, I’m not familiar with Phyisics. Please refer to the original video if you’re interestedTo find , we solve :

As we have known so here we know . Again note that we definitely can solve by eliminations. But here we can do that with physics. Each correspond to an edge, to edge 1 and etc (originally each is a node). How to make current travel in the network without collecting any charges at the node? Taking a look on Figure 1., we can do the lower loop first: go from node 1, use edge 1, edge 2 and a reversed edge 3 to go back to node 1. Then we can utilize the upper loop: edge 3, edge 5 and then reversed edge 4. So the basis for is:

Graphs, Networks, Incidence Matrices - May 30, 2019 - Ruizhen Mai