3.5.3 · D5Graphs
Question bank — Incidence matrix
Quick vocabulary refresher so every symbol below is already defined before it is used:
- vertex = a dot; edge = a line joining two dots; incident = "vertex touches edge".
- Indexing scheme: we number the vertices (so the index runs ) and the edges (so the index runs ). "Row " always means the row of vertex ; "column " always means the column of edge .
- = the incidence matrix, size (rows = the vertices, columns = the edges); is the entry in row , column .
- degree = how many edge-ends stick into vertex (see Degree of a vertex).
- Directed convention: tail (edge leaves the vertex), head (edge enters the vertex).
- Self-loop convention (undirected): an edge from a vertex to itself touches that vertex with both its ends, so it adds to the degree. To keep the rule "row sum degree" true, we write the entry ==== (not ) in that vertex's row for a loop column.
- All-ones vector = a column of ones, one entry per vertex; (the row times ) simply adds up each column of , giving one number per edge.
Look at the concrete picture below — a tiny triangle graph and its incidence matrix — before diving into the traps, so every phrase ("column of two 's", "row sum", "column sum ") has a mental image behind it.

True or false — justify
A column of an undirected incidence matrix can be entirely zero.
False. Every edge has two endpoints, so its column always carries two 's (or a single for a loop). An all-zero column would mean an edge attached to nothing, which is not an edge.
A row of an incidence matrix can be entirely zero.
True. An isolated vertex (degree ) touches no edge, so its row is all zeros. Rows describe vertices, and a lonely vertex is perfectly legal.
If is square then the graph must be a triangle.
False. is square only when (vertices count equals edge count). A triangle () is one such case, but any graph with equally many vertices and edges (e.g. a single cycle of any length) also gives a square .
In an undirected graph, adding one edge always adds exactly two 's to the matrix.
True for a normal edge, false for a loop. A normal edge appends a column with two 's; a self-loop appends a column holding a single , adding only one non-zero entry.
Every column of a directed incidence matrix sums to .
True — with no exceptions. A normal edge has one tail () and one head () in different rows, and they cancel. A directed self-loop puts both the and the in the same row, giving there too, so the column still sums to .
Two different graphs can never share the same incidence matrix.
False, subtly. They can differ only by relabelling rows/columns (renaming vertices or reordering edges) and still be the "same" graph up to isomorphism. Beyond relabelling, does pin down the graph structure.
The incidence matrix of a graph with no edges is empty of numbers.
True. With there are zero columns, so is an matrix — it has rows (the vertices) but nothing to fill in. Every vertex is isolated.
Swapping two columns of changes the graph.
False. Columns are just edge labels; reordering them renames but the same vertex-pairs are still connected. The graph is unchanged.
For an undirected graph, (the all-ones row times is zero).
False — that is the directed identity, where and cancel per column. Undirected columns are , so gives the all-'s row (a per edge), not zero.
Two parallel edges (two edges joining the same pair of vertices) can both appear in one incidence matrix.
True. Each edge is its own column, so parallel edges simply become two identical columns. The incidence matrix handles multigraphs naturally — it just repeats the column.
Spot the error
"A student writes a column with three 's, saying vertex , , all share edge ." — where's the flaw?
An edge has exactly two endpoints, so at most two 's per column. What they described is a hyperedge, not an ordinary graph edge; ordinary incidence matrices can't hold it.
"Since the adjacency matrix is , the incidence matrix is too." — where's the flaw?
Incidence relates two different sets (vertices and edges), so its size is . The adjacency matrix relates vertices to vertices, which is why it is square; the analogy does not carry over.
"In a directed graph I'll use for connected and otherwise, just like undirected." — where's the flaw?
That throws away direction. Without / signs you can't tell tail from head, column sums won't vanish, and the Laplacian identity fails ( is the matrix whose diagonal is the degrees and whose off-diagonal 's mark adjacent vertices — see Graph Laplacian).
"Two parallel edges must be merged into one column since they connect the same pair." — where's the flaw?
No — each edge is a distinct object and earns its own column, even if it duplicates another. Merging them would lose an edge and mis-count the degree (parallel edges add to degree twice).
"A self-loop should be marked with a single so the column looks normal." — where's the flaw?
A loop attaches to its vertex with both ends, contributing to the degree. Marking would break the rule "row sum "; the correct undirected entry is .
"Row sum equals the number of edges in the whole graph." — where's the flaw?
Row sums only the edges touching vertex , giving , not the total edge count . Summing all rows gives , which is a different statement (the Handshake Lemma).
"An oriented edge's tail is because the arrow starts positive." — where's the flaw?
Convention is the opposite: tail (edge leaves), head (edge enters). The signs are chosen so each column sums to ; swapping them would still cancel but violates the standard used to build the Laplacian Graph Laplacian.
Why questions
Why is the incidence matrix and not ?
Because it describes vertex-to-edge relationships, not vertex-to-vertex. Edges are the objects being catalogued, so each edge earns its own column — giving columns for rows.
Why does summing row give the degree of vertex ?
Row has a exactly in the columns of edges touching . Counting those 's is literally counting 's edges, which is the definition of degree.
Why do directed column sums vanish while undirected ones don't?
A directed edge splits its two ends into (out) and (in), which cancel. Undirected edges carry two identical 's, so they add to with nothing to cancel against.
Why does the incidence matrix "prove" the Handshake Lemma?
Count the 's two ways: by columns gives per edge ; by rows gives . The same marks counted two ways must agree, so (see Handshake Lemma).
Why is the oriented incidence matrix preferred for building ?
The signed entries make produce degrees on the diagonal and for adjacent pairs — exactly the Laplacian (the matrix that encodes both degree and connectivity, used all over spectral graph theory — see Graph Laplacian). Unsigned entries would give the wrong off-diagonal signs and destroy the identity.
Why can incidence lists beat the full matrix for huge graphs?
Most large graphs are sparse (few edges per vertex), so the matrix is mostly zeros. Storing only the two endpoints per edge — a compact "edge list", the idea behind Sparse graph representations — saves the wasted space of all those 's that the full grid would hold.
Edge cases
What does the incidence matrix look like for a single isolated vertex (no edges)?
A matrix: one row, zero columns. The vertex exists but has nothing to be incident with, so its degree is .
What is the incidence matrix of the empty graph with no vertices and no edges ()?
A matrix — no rows and no columns at all. It is the degenerate base case: nothing to index, every sum is an empty sum equal to , and still holds trivially.
How does a directed self-loop appear, and does its column still sum to ?
Both the tail () and head () land in the same row (the loop's single vertex), so that row shows . The column still sums to — the identity has no exception; the only quirk is that the two signs share one row instead of two.
How do two parallel edges show up in the matrix?
As two identical columns (same pair of rows carrying the two 's). The matrix stores multigraphs faithfully; each parallel edge independently adds to each endpoint's degree.
For a graph that is just two vertices joined by a single edge, what are the row and column sums?
Each row sums to (each vertex has degree ) and the single column sums to (its two endpoints). This is the smallest non-trivial incidence matrix.
What is the total number of 's in a loop-free undirected graph with edges, regardless of ?
Always — two per column, independent of how many vertices exist. This equals , recovering the Handshake Lemma.
If every vertex in an undirected graph has even degree, what can you say about its rows?
Every row sums to an even number. Since a row sum is the degree, "all degrees even" translates directly into "all row sums even" — useful for detecting Eulerian structure.
What happens to if you delete an edge?
You delete its column; drops by one and the two endpoints each lose from their degree (row sum). No other entry changes, showing edges are independent columns.
Connections
- Incidence matrix — the parent note these traps drill.
- Adjacency matrix — the representation confused with in several traps.
- Graph Laplacian — where the directed sign convention pays off ().
- Degree of a vertex — the row-sum quantity.
- Handshake Lemma — the count-two-ways result.
- Sparse graph representations — why the full matrix is often avoided.