Skip to content

Loop (Graph Theory)

A graph edge whose two endpoints are the same vertex, admitted or excluded according to the chosen graph category.

Version
v2 · 2026-11-14 · History
Domain-specific #
10496
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomain
Graph Theory → Mathematics
Aliases
Self-loop, Graph loop, Buckle, Self-edge

Core Idea

A graph-theoretic loop is a local edge relation, not merely any return to a starting point. Both ends of one edge coincide at one vertex; in directed language its source and target are identical.

Whether loops exist is part of the graph's type. Their double incidence in undirected graphs and their diagonal representation in adjacency matrices must be handled explicitly when computing invariants.

How would you explain it like I'm…

The Lasso Line

Draw some dots and connect them with lines. Usually a line goes from one dot to a different dot. But a loop is a line that starts at a dot and comes right back to the very same dot, like a little lasso around it.

An Edge That Comes Right Back

In graph theory, a graph is dots (called vertices) joined by lines (called edges). A loop is a single edge whose two ends attach to the same dot. It's not the same as taking a long trip around several dots and getting back home; a loop is just one edge. Some kinds of graphs allow loops and some don't, so you have to say which kind you mean.

Self-Loop Edge

In graph theory, a loop is one edge whose two endpoints are the same vertex; in a directed graph, its start and end are identical. It's a local feature of one edge, not just any path that returns to its starting point (that would be a cycle). Whether loops are allowed is part of what kind of graph you're working with: 'simple graphs' forbid them, others permit them. Loops need special care in calculations. For example, a loop touches its vertex twice, so in undirected graphs it typically adds 2 to that vertex's degree, and in an adjacency matrix it appears on the diagonal.

 

A Loop in graph theory is a local edge relation: a single edge whose two ends coincide at one vertex; in a directed graph, an arc whose source and target are identical. It must be distinguished from a cycle or any other return to a starting point, which involves a walk through multiple edges. Whether loops are permitted is part of the graph's type — simple graphs exclude them, while other graph types may allow them. Because an undirected loop has double incidence at its vertex, and because it is represented on the diagonal of the adjacency matrix, computations of invariants must handle loops explicitly and by stated convention.

Structural Signature

Sig role-phrases:

  • Graph — Supplies vertices, edges, and incidence rules. It is ambient structure. Counterfactual: Without a graph category the edge convention is undefined.
  • Vertex — Serves as both endpoints of the edge. It is repeated endpoint. Counterfactual: Two distinct endpoints define a non-loop edge.
  • Edge — Carries the self-incidence relation. It is defining object. Counterfactual: A walk returning to its start is not itself a loop edge.
  • Incidence multiplicity — Counts the edge twice at the same undirected vertex. It is local effect. Counterfactual: Counting it once gives the wrong degree convention.
  • Graph-class convention — Determines whether loops and parallel edges are admitted. It is type constraint. Counterfactual: Calling every graph simple silently deletes valid loops.
  • Invariant convention — Defines matrix, coloring, and traversal consequences. It is analytic frame. Counterfactual: Results can differ if diagonal entries or loop constraints are treated differently.

What It Is Not

  • It is not every closed walk or cycle.
  • It is not a programming loop.
  • It is forbidden in a simple graph by definition.
  • A drawn loop still has two undirected incidences at its vertex.
  • Closest near-miss. A self-returning closed walk may traverse many edges; a graph-theoretic loop is a single edge incident twice with one vertex.

Scope of Application

  • Graph theory. Defines pseudographs and local incidence.
  • Network modeling. Represents self-relations or within-node transitions.
  • Matrix methods. Appears on adjacency diagonals under stated conventions.
  • Automata. Represents transitions that retain a state.

Clarity

State directedness, graph category, endpoint and incidence conventions, degree counting, adjacency representation, multiplicity, and how loops affect the invariant or algorithm being used.

Manages Complexity

The concept compresses a self-relation into one edge while forcing graph models and algorithms to expose assumptions often hidden by simple-graph notation.

Abstract Reasoning

  1. Declare the graph category.
  2. Inspect each edge's endpoint pair.
  3. Classify identical endpoints as a loop if permitted.
  4. Apply incidence and degree conventions.
  5. Recheck affected matrices, walks, colorings, and algorithms.

Knowledge Transfer

Loop-aware results transfer between graph formalisms only after reconciling directedness, multiplicity, degree, and diagonal conventions.

Examples

Canonical

In a pseudograph with vertex v and edge e having endpoints (v,v), e is a loop; in the undirected degree sum it contributes two at v.

Mapped back: graph → pseudograph; vertex → v; edge → e=(v,v); incidences → 2; degree contribution → 2.

Applied / In Practice

Edges v–w and w–v form a length-two closed walk with distinct endpoints on each edge, so neither edge is a loop.

Mapped back: walk → closed; single self-edge → absent; verdict → not loop edge.

Structural Tensions

T1 — General Graph Categories versus Simple-Graph Intuition. Loops are legitimate in broad graph models but forbidden by the common simple-graph convention.

Diagnostic: Which graph category is declared?

T2 — Visual Simplicity versus Algebraic Multiplicity. A drawn loop looks like one mark while it has two incidences at its vertex.

Diagnostic: Are degree and matrix conventions stated consistently?

Structural–Framed Character

Loop (Graph Theory) is strongly structural as a single edge with coincident endpoints.

Structural Core vs. Domain Accent

The skeleton is edge, repeated endpoint, incidence, and graph-type rule. Graph theory supplies degree, adjacency, walks, and coloring consequences.

This entry is a kind of Reflexivity (Self-Reference).

  • Approved root. No reviewed parent entails this self-incident edge type.

  • Related — self-loop, pseudograph, cycle, closed walk, and diagonal adjacency entry. They give synonym, host categories, and neighboring structures.

Relationships to Other Abstractions

Local relationship map for Loop (Graph Theory)Parents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Loop (Graph Theory)DOMAINPrime abstraction: Reflexivity (Self-Reference) — is a kind ofReflexivity(Self-Reference)PRIME

Current abstraction Loop (Graph Theory) Domain-specific

Parents (1) — outgoing typed relations

  • Loop (Graph Theory) is a kind of Reflexivity (Self-Reference) Prime

    A Graph Loop is Reflexivity/Self-Reference realized as an edge whose source and target are the same vertex.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Loop (Graph Theory) sits in a crowded region of the domain-specific corpus (26th percentile for distinctiveness): several abstractions share nearly its structure, so a description that fits it tends to fit its neighbors too.

Family — Graph Structures & Algorithms (24 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

Not to Be Confused With

  • Cycle. Tell: Uses a closed sequence and often multiple edges.
  • Closed walk. Tell: May revisit vertices and edges without being one self-edge.
  • Parallel edge. Tell: Shares endpoints with another edge but need not be a loop.
  • Topological loop. Tell: Is a map or path concept with different structure.

References

  • Frozen Wikipedia discovery revision: https://en.wikipedia.org/wiki/Loop_(graph_theory) (revision 1285188825).