For all the definitions below, consider a graph with vertex set and edge set .
Vertex
Denoted by a point.
Degree
The number of edges incident on a vertex. Denoted by . A loop contributes 2 to the degree of a vertex.
Isolated Vertex
When a vertex’s degree is 0.
Pendant Vertex
When a vertex’s degree is 1.
Degree Sequence
The list of its vertex degrees sorted in non-increasing order.
Edge
Denoted by a line.
Loop
An edge that connects a vertex to itself.
Adjacency
Two vertices are said to be adjacent iff they are connected by an edge.
Two edges are said to be adjacent iff they share a common vertex.
Incidence
An edge is said to be incident to a vertex iff the vertex is one of the endpoints of the edge.
A vertex is said to be incident to an edge iff the edge is one of the edges connected to the vertex.
Subgraph
Suppose and .
If and then is a subgraph of .
Supergraph
In the above example, is a supergraph of .
Complement
Aka. inverse. For a simple graph , its complement graph has:
- The same vertex set
- An edge between two vertices iff they are not adjacent in .
Denoted by .
Preliminary Definitions
Walk
A finite alternating sequence of vertices and edges, which begins and ends with a vertex, so that each edge is incident with the vertices preceding and following it, and any vertex or edge can appear more than once.
If is the adjacency matrix of , entry (i, j) of Aᵐ = number of walks of length m from vᵢ to vⱼ
Explanation: Matrix multiplication accumulates all possible paths step by step.
Trail
A walk with no repeating edges. Vertices may repeat.
Circuit
Aka. closed trail. A trial with the same starting and ending vertices. No repeating edges.
Path
A trail with no repeating vertices (except the starting and ending pair). No repeating edges.
In a connected graph with vertices, any two vertices are connected by a path of length .
Cycle
A closed path. Starts and ends in the same vertex. No repeating vertices and no repeating edges.
All cycles with the same number of vertices, edges, are considered a single cycle, even if written in a different order.
Euler Path
A trail that traverses every edge. No repeating edges.
Euler Circuit
A closed Euler path. Starts and ends in the same vertex.
Hamiltonian Path
Aka. traceable path. A path that contains every vertex of the graph. No repeating edges and no repeating vertices.
Hamiltonian Cycle
Aka. Hamiltonian Circuit. A closed Hamiltonian path.
Comparison
| - | Repeating Vertices | Repeating Edges | Same Start and End |
|---|---|---|---|
| Walk | Yes | Yes | No |
| Closed Walk | Yes | Yes | Yes |
| Trail / Euler Path* | Yes | No | No |
| Circuit (Closed Trail) / Euler Circuit* | Yes | No | Yes |
| Path / Hamiltonian Path** | No | No | No |
| Closed Path / Hamiltonian Circuit** | No | No | Yes |
*must traverse every edge. **must traverse every vertex.