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.

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. Inclusion test: Specify the graph type and an edge whose endpoint pair is (v,v), then state incidence, degree, adjacency, and invariant conventions relevant to the use. Exclusion test: Exclude a cycle of length greater than one, an algorithmic loop, a topological loop not represented as one graph edge, and a walk that starts and ends at the same vertex using several edges. Nearest boundary: A self-returning closed walk may traverse many edges; a graph-theoretic loop is a single edge incident twice with one vertex. Exit condition: The edge leaves the class when its two endpoints are distinct, even if it belongs to a cycle that returns to the starting vertex. Common misclassifications: 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. Nearest named distinctions: Cycle: Uses a closed sequence and often multiple edges. Closed walk: May revisit vertices and edges without being one self-edge. Parallel edge: Shares endpoints with another edge but need not be a loop. Topological loop: Is a map or path concept with different structure.

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.

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