Complete Graph — Definition, Formula & Examples
A complete graph is a graph in which every pair of distinct vertices is connected by exactly one edge. It is denoted , where is the number of vertices.
A complete graph is a simple, undirected graph on vertices such that for every pair of distinct vertices and , the edge belongs to the edge set. Equivalently, every vertex has degree .
Key Formula
Where:
- = Number of vertices in the complete graph
- = Number of edges in the complete graph
How It Works
To construct , place vertices and draw an edge between every possible pair. Because no vertex is left unconnected to any other, the graph has the maximum number of edges a simple graph on vertices can have. Complete graphs serve as a benchmark in graph theory: any simple graph on vertices is a subgraph of .
Worked Example
Problem: How many edges does the complete graph K_6 have?
Apply the formula: Substitute n = 6 into the edge-count formula.
Compute: Simplify the arithmetic.
Answer: has 15 edges.
Why It Matters
Complete graphs appear throughout combinatorics and computer science. Ramsey theory asks how large a complete graph must be before a monochromatic substructure is guaranteed. In networking, models a fully connected topology where every node can communicate directly with every other node.
Common Mistakes
Mistake: Confusing a complete graph with a connected graph.
Correction: A connected graph merely requires a path between every pair of vertices; a complete graph requires a direct edge between every pair. Every complete graph is connected, but most connected graphs are not complete.
