LOGBOOK

HELP

Quiz Entry - updated: 2026.11.27

What are parallel edges and self-loops, and what is a simple graph?

Parallel (multiple) edges join the same pair of vertices more than once, like h and i between X and Z. A self-loop joins a vertex to itself, like j at Z. A simple graph has neither: between any two distinct vertices there is at most one edge, and no edge starts and ends at the same vertex.

Many statements about graphs quietly assume a simple graph. The edge bound $m \le n(n-1)/2$ holds only for simple graphs, the usual cost table for graph structures assumes no parallel edges and no self-loops, and "the edge between $u$ and $v$" is only well defined when there is at most one.

Real data does contain them: two airlines flying the same route are two parallel edges if each edge stands for one airline's service, and a state machine that stays in its state on some input has a self-loop. A self-loop adds 2 to the degree of its vertex, since both of its ends sit there: Z has degree 4, from h, i and the two ends of j.

Go deeper:

  • doc Multiple edges — parallel edges, multigraphs, and how they differ from simple graphs.
  • doc Loop (graph theory) — self-loops, and why a loop counts twice towards the degree.

From Quiz: ADS / Graphs: Basics, Representations and Spanning Trees | Updated: Nov 27, 2026