12. Graphs, Networks, Incidence Matrices
Overview
An oriented graph with 4 nodes and 5 edges yields a sparse incidence matrix whose rows encode edge directions and whose columns encode node potentials. The lecture connects its four fundamental subspaces to electrical networks: A computes potential differences, Ohm's law maps differences to currents, and A transpose y = 0 expresses Kirchhoff's Current Law; cycle-space dimension then gives the connected-graph identity nodes minus edges plus independent loops equals 1.
Key takeaways
- For a connected graph with n nodes and m oriented edges, the incidence matrix has rank n - 1 because constant node potentials lie in its null space.
- The null space of A transpose is the cycle space: its dimension m - n + 1 counts independent current loops, not all visually traceable cycles.
- The incidence matrix converts node potentials into edge potential differences, while its transpose encodes node-by-node flow conservation.
- A spanning tree on n connected nodes contains n - 1 independent edges and no cycles; adding each further edge creates one additional independent cycle.
- For a network with conductance matrix C and external current vector F, the equilibrium equations combine into A transpose C A x = F.
- Grounding one node removes the arbitrary constant in the potential reference; for a connected network, this allows the remaining node potentials to be determined.
Chapters
- Real matrices arise from applications, such as chemical reaction quantities and networks, rather than being arbitrary classroom examples.
- A graph consists of nodes and edges and can model websites, telephone connections, people, electrical circuits, water flow, or structures.
- The lecture builds an electrical network example with 4 nodes and 5 edges.
- Each of the 5 rows represents one edge, and each of the 4 columns represents one node.
- Orienting an edge assigns a -1 at its starting node and a +1 at its destination; every row therefore has exactly two nonzero entries.
- The resulting 5-by-4 incidence matrix is sparse, with 2m = 10 nonzero entries for m = 5 edges.
- The triangle formed by edges 1, 2, and 3 creates a row dependency: the row for edge 1 plus the row for edge 2 equals the row for edge 3.
- For node potentials x = (x1, x2, x3, x4), multiplying by A produces edge differences such as x2 - x1 and x3 - x2.
- Solving Ax = 0 requires equal potentials at the ends of every edge, so a connected graph has null space spanned by (1, 1, 1, 1).
- The 5-by-4 incidence matrix has rank 3 and a one-dimensional null space because adding the same constant to every node potential changes no edge difference.
- Grounding one node fixes the arbitrary reference potential and leaves 3 independent potential variables.
- A transpose is a 4-by-5 matrix, and rank-nullity gives dim N(A transpose) = m - r = 5 - 3 = 2.
- The vector y = (y1, y2, y3, y4, y5) represents currents on the 5 oriented edges.
- Ohm's law maps edge potential differences to currents using conductances, collected in a matrix C.
- The equation A transpose y = 0 is Kirchhoff's Current Law for a network without external current sources.
- At node 1, the equation -y1 - y3 - y4 = 0 balances the three currents directed outward from that node.
- At node 2, y1 - y2 = 0 requires incoming current y1 to equal outgoing current y2.
- At node 3, y2 + y3 - y5 = 0 balances two incoming currents against the outgoing current y5.
- At node 4, y4 + y5 = 0 expresses zero net flow, so charge does not accumulate at any node.
- A unit current around the triangle uses y1 = 1, y2 = 1, and y3 = -1, with y4 = y5 = 0.
- A second independent circulation uses the loop through edges 3, 4, and 5, with signs chosen to follow or oppose each edge arrow.
- These two loop-current vectors form a basis for N(A transpose), matching its dimension of 2.
- The current around the outside loop is not a third basis vector because it is the sum of the two smaller loop currents.
- The pivot columns of A transpose correspond to edges 1, 2, and 4, which connect all 4 nodes without forming a loop.
- A connected, loop-free subgraph with 4 nodes and 3 edges is a tree; its edges provide an independent set.
- For a connected graph, rank r = n - 1, so the number of independent cycles is dim N(A transpose) = m - n + 1.
- Rearranging gives nodes minus edges plus independent loops equals 1, the graph identity presented as Euler's formula in the lecture.
- A second example has 5 nodes, 7 edges, and 3 independent loops.
- The count gives 5 - 7 + 3 = 1, illustrating the connected-graph identity.
- The loop count refers to independent cycles, not every possible route that can be traced around the graph.
- The network equations proceed from node potentials x to potential differences E = Ax, then to edge currents y = CE.
- Kirchhoff's law with external current sources is A transpose y = F, yielding A transpose C A x = F.
- The matrix A transpose C A is symmetric when C is symmetric; A transpose A is also always symmetric.
- The resulting system models equilibrium current distribution and is a core form of a numerical linear algebra problem.
Transcript excerpt
0:12 This is lecture twelve. OK. We've reached twelve lectures. And this one is more than the others about applications of linear algebra. And I'll confess. When I'm giving you examples of the null space and the row space, I create a little matrix. You probably see that I just invent that matrix as I'm going. And I feel a little guilty about it, because the truth is that real linear algebra uses matrices that come from somewhere. They're not just, like, randomly invented by the instructor. They come from applications. They have a definite structure.
1:00 And anybody who works with them gets, uses that structure. I'll just report, like, this weekend I was at an event with chemistry professors. OK, those guys are row reducing matrices, and what matrices are they working with? Well, their little matrices tell them how much of each element goes into the -- or each molecule, how many molecules of each go into a reaction and what comes out. And by row reduction they get a clearer picture of a complicated reaction. And this weekend I'm going to -- to a sort of birthday party at Mathworks. So Mathworks is out Route 9 in Natick.
1:55 That's where Matlab is created. It's a very, very successful, software, tremendously successful. And the conference will be about how linear algebra is used. And so I feel better today to talk about what I think is the most important model in applied math. And the discrete version is a graph. So can I draw a graph? Write down the matrix that's associated with it, and that's a great source of matrices. You'll see. So a graph is just, so a graph -- to repeat -- has nodes and edges. OK.
2:47 And I'm going to write down the graph, a graph, so I'm just
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, MIT OpenCourseWare.