Path Graph — Definition, Formula & Examples
A path graph is a graph consisting of a sequence of vertices connected end-to-end by edges, forming a single chain with no branches or cycles.
The path graph on vertices is a tree with vertex set and edge set . It has exactly edges, and precisely two vertices of degree 1 (the endpoints) while all interior vertices have degree 2.
Key Formula
Where:
- = The path graph on n vertices
- = Number of vertices (n ≥ 1)
- = Number of edges in the path graph
Worked Example
Problem: Consider the path graph . Determine its edges, its degree sequence, and verify whether it is a tree.
Step 1: List the vertices and edges. has vertices connected in a chain.
Step 2: Find the degree of each vertex. The two endpoints have degree 1, and the three interior vertices each have degree 2.
Step 3: Check the tree conditions: a tree on vertices has exactly edges and is connected with no cycles. Here , the graph is connected, and it contains no cycles.
Answer: has 4 edges, degree sequence , and is indeed a tree.
Why It Matters
Path graphs serve as a baseline case in proofs and algorithms throughout graph theory and combinatorics. Many properties — chromatic number, independence number, Hamiltonian paths — are easy to verify on , making it a standard test case. They also model real structures like linear pipelines and sequential processes in computer science.
Common Mistakes
Mistake: Confusing a path graph with a cycle graph .
Correction: A path graph has two endpoints of degree 1 and no cycles, while a cycle graph closes the chain into a loop so every vertex has degree 2. has edges; has edges.
