3.5.3 · D1Graphs

Foundations — Incidence matrix

2,964 words13 min readBack to topic

Before you can trust the parent note Incidence matrix (parent), you must own every piece of its vocabulary. We build them in order — each one uses only the ones above it.


1. Dot = vertex ()

The symbol is the first letter of vertex. The subscript (the small number below) is a label, nothing more: means "the dot I've chosen to call number 2".

Figure — Incidence matrix
Figure 1 — A single red dot labelled , with an arrow pointing to it from the name tag. Caption: a vertex is just one labelled dot; the subscript is a name we attach so we can refer to it.


2. Line = edge ()

An edge is defined by the pair of vertices it joins. We write to mean "edge number 1 connects vertex and vertex ". (The names inside the brackets are always vertex symbols , never bare numbers — keeping the notation consistent.)

The word endpoint just means "a vertex sitting at the end of the line". Edge has endpoints and .


3. Graph ()

Figure — Incidence matrix
Figure 2 — Three red dots labelled 1, 2, 3 joined by three black lines into a triangle. Caption: a graph is just dots plus lines; this one has vertices and edges.

That is all a graph is — dots and lines. The parent note's "triangle" is just three dots each joined to the other two.


4. Counting: and

These two letters run through the whole topic. Whenever you see , whisper "dots"; whenever you see , whisper "lines". A triangle has and .


5. Direction: undirected vs directed

Figure — Incidence matrix
Figure 3 — Top: two black dots joined by a plain line (undirected, both ways). Bottom: two black dots joined by a red arrow, with the start labelled "tail" and the arrowhead end labelled "head". Caption: an undirected edge is a plain line; a directed edge is an arrow with a tail and a head.


6. The self-loop

It is still an edge with "two endpoints", but both endpoints happen to be the same vertex. That is why, in the undirected incidence matrix, a loop touches its vertex twice and the entry becomes a — the one exception to the "two separate marks" rule.


7. Parallel edges (multigraphs)


8. Degree ()

Figure — Incidence matrix
Figure 4 — One central red dot labelled with three black lines running out to three black neighbour dots. Caption: three line-ends touch , so ; degree counts line-ends, not neighbours.

The degree is exactly what a row of the incidence matrix will add up to. And adding up all degrees gives (each of the edges contributes 2 ends) — that is the Handshake Lemma.


9. The tick-grid (what "incidence matrix" is)

For the triangle of Figure 2, the tick-grid (marks shown as ) is:

1 0 1
1 1 0
0 1 1

Read any column top-to-bottom: it has exactly two 's (the edge's two endpoints). Read any row left-to-right: its 's count the edges at that vertex — its degree.


10. The matrix and its address


11. The summation symbol


12. Column vectors, transpose, and the symbols ,

The parent note ends with . Three new symbols hide in there; here they are, from zero.


Prerequisite map

The roadmap below reads top-down. Vertex (a dot) and edge (a line) are the two roots. An edge in turn carries three refinements: direction (tail/head), self-loops, and parallel edges. Vertex and edge together build the whole graph, which gives the two counts and . Vertex + edge also give degree (line-ends at a dot), and direction splits degree into out-/in-degree. The counts fix the matrix shape and address ; matrix + degree feed the summation (row-sum) idea; the matrix also feeds column vectors, transpose, and . All of these arrows finally converge on the incidence matrix itself.

Vertex a dot

Graph the whole picture

Edge a line two endpoints

Direction tail and head

Self loop dot to itself

Parallel edges multigraph

Counts n dots and m lines

Degree ends touching a dot

Out degree and in degree

Matrix B and address Bij

Summation sigma add a row

Column vector transpose ones and zero

Incidence matrix


Equipment checklist

I can point to a vertex in a drawn graph and say why it's called
A vertex is a dot; the subscript is just a name tag to tell dots apart.
I can state the unbreakable rule about how many endpoints an edge has
Exactly two (a self-loop has both endpoints at the same dot).
I know what and count and that they are usually different
= number of vertices (dots), = number of edges (lines).
I can explain the difference between an undirected and a directed edge
Undirected = plain line, both ways; directed = arrow with a direction.
I can identify the tail and head of an arrow
Tail = where the arrow leaves; head = where the arrowhead lands.
I can split a directed dot's degree into out-degree and in-degree
Out-degree = arrows leaving (tails); in-degree = arrows entering (heads).
I can say why a self-loop adds 2 to a degree
It touches its dot with both of its ends.
I can say what a self-loop does in a directed incidence matrix
Its (tail) and (head) land in the same cell and cancel to .
I know what parallel edges do to the incidence matrix
Each is a separate edge with its own column, so they produce duplicate columns.
I can describe the tick-grid metaphor for the incidence matrix
A table with one row per vertex, one column per edge, and a mark where a vertex touches an edge.
I can state the exact rule for an undirected entry
if is an endpoint of , for a self-loop, otherwise.
I can state the exact rule for a directed entry
at the tail, at the head, for a self-loop, otherwise.
I can read the address correctly
The number in row (vertex ), column (edge ) — a coordinate, not a product.
I can read in plain words
Add every entry across row , from column 1 to column .
I know what describes
The shape of the matrix: rows tall, columns wide.
I can explain what , , and mean
= column of all ones, = column of all zeros, = transpose (flip rows and columns).
I can say what means in words
Every column of the directed incidence matrix sums to zero.