Intuition The one core idea
A graph is a picture of dots joined by lines . The incidence matrix is just a tick-grid — a table with one row per dot and one column per line — where you put a mark whenever "this dot touches this line". Everything on this page builds the vocabulary you need so that later, when precise symbols appear, you already see the picture behind each one.
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.
A vertex is a single dot . It stands for one "thing": a person, a city, a webpage. We write vertices as v 1 , v 2 , v 3 , … — the little number is just a name tag so we can tell dots apart.
The symbol v is the first letter of vertex . The subscript (the small number below) is a label, nothing more: v 2 means "the dot I've chosen to call number 2".
Figure 1 — A single red dot labelled v 2 , 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.
Intuition Why we need dots at all
A computer cannot store "a city". But it can store "item number 2". Naming each thing v i is the first act of turning a picture into numbers.
An edge is a line drawn between two dots. It means those two things are related (friends, connected roads, a link). We name edges e 1 , e 2 , …
An edge is defined by the pair of vertices it joins. We write e 1 = ( v 1 , v 2 ) to mean "edge number 1 connects vertex v 1 and vertex v 2 ". (The names inside the brackets are always vertex symbols v i , never bare numbers — keeping the notation consistent.)
The word endpoint just means "a vertex sitting at the end of the line". Edge e 1 = ( v 1 , v 2 ) has endpoints v 1 and v 2 .
A graph G is the whole picture : the full set of dots plus the full set of lines. We write G = (vertices, edges).
Figure 2 — Three red dots labelled 1, 2, 3 joined by three black lines into a triangle. Caption: a graph G is just dots plus lines; this one has n = 3 vertices and m = 3 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.
Definition The two size numbers
n = number of vertices (how many dots ).
m = number of edges (how many lines ).
These two letters run through the whole topic. Whenever you see n , whisper "dots"; whenever you see m , whisper "lines". A triangle has n = 3 and m = 3 .
Common mistake Don't mix them up
n counts dots, m counts lines. They are usually different . A single line joining two dots gives n = 2 , m = 1 .
Definition Undirected vs directed edge
Undirected edge: a plain line — the relationship goes both ways ("Ali is friends with Beth" = "Beth is friends with Ali").
Directed edge: an arrow — the relationship has a direction ("Ali follows Beth" is not the same as "Beth follows Ali").
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.
On a directed edge (an arrow), the dot the arrow leaves is the tail , and the dot it points into is the head . In the picture: the arrow starts at the tail and its arrowhead lands on the head — the words are literal.
Intuition Why direction forces a sign later
If we only wrote "1 = connected", an arrow v 1 → v 2 would look identical to v 2 → v 1 and we'd lose the direction. So the parent note uses − 1 for the tail and + 1 for the head — two different marks so the arrow's direction survives in the numbers.
Definition Out-degree and in-degree
Once edges are arrows, one degree number is no longer enough — we split it in two:
Out-degree of a dot = how many arrows leave it (how many times it is a tail ).
In-degree of a dot = how many arrows enter it (how many times it is a head ).
In the triangle-with-arrows v 1 → v 2 , v 2 → v 3 , v 1 → v 3 : vertex v 1 has out-degree 2 / in-degree 0 ; vertex v 3 has out-degree 0 / in-degree 2 . Adding both back together gives the plain degree, which is why the undirected incidence matrix (all marks positive) still row-sums to the total degree.
A self-loop is an edge whose two endpoints are the same dot — a line that leaves a dot and comes straight back to it, like v 1 → v 1 .
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 2 — the one exception to the "two separate marks" rule.
Intuition A self-loop in a
directed graph
A self-loop is both the tail and the head at the same vertex — the arrow leaves and returns to the same dot. Under the tail-( − 1 ) / head-( + 1 ) rule these two contributions cancel in the same cell : ( − 1 ) + ( + 1 ) = 0 . So in a directed (oriented) incidence matrix a self-loop contributes a 0 in that vertex's cell — it carries no orientation information and is usually dropped. (This is why the oriented incidence matrix and the Graph Laplacian are normally defined on loop-free graphs.)
Definition Parallel edges / multigraph
Parallel edges are two or more distinct lines joining the same pair of dots (imagine two separate roads both linking city v 1 and city v 2 ). A graph that allows them is called a multigraph .
Intuition What parallel edges look like in the tick-grid
Each parallel edge is still a separate edge , so it gets its own column . If e 1 = ( v 1 , v 2 ) and e 2 = ( v 1 , v 2 ) are two parallel lines, columns e 1 and e 2 are identical — both mark rows v 1 and v 2 . The incidence matrix handles this fine (it just has duplicate columns ), whereas a plain adjacency count would blur them together. The "exactly two marks per column" rule still holds — it is per edge , not per pair of dots .
Definition Degree of a vertex
The degree of a dot, written deg ( v i ) , is the number of line-ends touching it — count how many lines poke into that dot.
Figure 4 — One central red dot labelled v with three black lines running out to three black neighbour dots. Caption: three line-ends touch v , so deg ( v ) = 3 ; degree counts line-ends, not neighbours.
Intuition Why "line-ends", not "lines"
A self-loop touches its dot with both its ends, so it adds 2 to the degree. Counting ends (not whole edges) is what keeps the tidy rule "row-sum = degree" always true. Full detail lives in Degree of a vertex .
The degree is exactly what a row of the incidence matrix will add up to. And adding up all degrees gives 2 m (each of the m edges contributes 2 ends) — that is the Handshake Lemma .
A tick-grid is a plain table : one row for each vertex and one column for each edge . In the cell where a row and a column meet, you write a mark if that vertex touches that edge, and leave it blank (a 0 ) if it does not. That is literally what an incidence matrix is — a grid of ticks turned into numbers. The rest of this page just makes the word "mark" precise (a 1 , a 2 for a loop, or a signed ± 1 for arrows).
For the triangle of Figure 2, the tick-grid (marks shown as 1 ) is:
e 1 = ( v 1 , v 2 )
e 2 = ( v 2 , v 3 )
e 3 = ( v 1 , v 3 )
v 1
1
0
1
v 2
1
1
0
v 3
0
1
1
Read any column top-to-bottom: it has exactly two 1 's (the edge's two endpoints). Read any row left-to-right: its 1 's count the edges at that vertex — its degree.
A matrix is a rectangle of numbers arranged in rows (going across) and columns (going down). We name our incidence matrix B (for the B in the older word "biadjacency", but just treat it as a name).
Definition The subscript address
B ij
B ij means "the number sitting in row i , column j ". The first subscript is which row (which vertex), the second is which column (which edge). It is a grid reference, exactly like "row 3, seat 5" in a cinema.
n × m
"n × m " (read "n by m ") tells the shape : n rows tall, m columns wide. For the incidence matrix: n rows because there are n dots, m columns because there are m lines. Rows = dots, columns = lines. See Sparse graph representations for how big grids are stored efficiently.
B ij means multiply i by j "
No. The subscripts are coordinates , not a product. B 23 is "the entry at row 2, column 3", a single stored number.
Definition Sigma / summation
j = 1 ∑ m B ij means: "add up the numbers B i 1 , B i 2 , … , B im ." The big Greek ∑ (sigma) is shorthand for "add all of these". The j = 1 underneath is where the counter starts ; the m on top is where it stops .
Intuition Reading the row-sum aloud
∑ j = 1 m B ij = "walk across row i , from column 1 to column m , adding every entry." Because a row's entries are 1 wherever an edge touches that vertex, this walk counts the touching edges — which is the degree. That is the whole proof of the parent's row-sum rule, in words.
The parent note ends with 1 T B = 0 . Three new symbols hide in there; here they are, from zero.
A column vector is just a single column of numbers (a matrix that is one column wide). Think of it as a stack.
Definition The all-ones vector
1 and the zero vector 0
1 (bold one) = a column vector whose every entry is the number 1 . For n = 3 it is the stack 1 1 1 .
0 (bold zero) = a vector whose every entry is 0 .
Bold means "the whole stack", not a single number.
T )
The transpose , written with a small raised T , flips a matrix on its side : rows become columns and columns become rows. So 1 (a tall column of ones) becomes 1 T (a long row of ones).
1 T B = 0 actually says
Multiplying a row of ones 1 T into B means "for each column of B , add up all its entries". So 1 T B = 0 is the compact way of writing "every column of the directed incidence matrix sums to zero " — the tail ( − 1 ) and head ( + 1 ) cancel. You now have every piece needed to read it. This equation leads onward to the Graph Laplacian .
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 n and m . 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 B ij ; matrix + degree feed the summation (row-sum) idea; the matrix also feeds column vectors, transpose, 1 and 0 . All of these arrows finally converge on the incidence matrix itself.
Edge a line two endpoints
Parallel edges multigraph
Counts n dots and m lines
Degree ends touching a dot
Summation sigma add a row
Column vector transpose ones and zero
I can point to a vertex in a drawn graph and say why it's called v i 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 n and m count and that they are usually different n = number of vertices (dots), m = 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 − 1 (tail) and + 1 (head) land in the same cell and cancel to 0 .
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 B ij 1 if v i is an endpoint of e j , 2 for a self-loop, 0 otherwise.
I can state the exact rule for a directed entry B ij − 1 at the tail, + 1 at the head, 0 for a self-loop, 0 otherwise.
I can read the address B ij correctly The number in row i (vertex i ), column j (edge j ) — a coordinate, not a product.
I can read ∑ j = 1 m B ij in plain words Add every entry across row i , from column 1 to column m .
I know what n × m describes The shape of the matrix: n rows tall, m columns wide.
I can explain what 1 , 0 , and T mean 1 = column of all ones, 0 = column of all zeros, T = transpose (flip rows and columns).
I can say what 1 T B = 0 means in words Every column of the directed incidence matrix sums to zero.