selfloops
Selfloops, or loops, are edges that connect a vertex to itself in a graph. In undirected graphs the loop has both endpoints at the same vertex, while in directed graphs the loop is an edge from the vertex to itself. Graphs that allow loops are often called pseudographs; when multiple edges between vertices are also allowed, the term multigraph is used, though conventions vary.
In an undirected graph a loop contributes two to the degree of its vertex; in a directed
Loops affect algorithms and properties. Some definitions of a simple graph disallow loops; many algorithms can
In modeling, loops capture self-influence or persistence. In automata, a state with a self-loop means the machine
Examples help illustrate their use. A social network might include a self-loop if a node represents a