Introduction to Graph Measurements
In graph theory, we need precise ways to describe and measure graphs. Just as we measure physical objects by their dimensions, we measure graphs using specific mathematical properties. Three of the most fundamental properties are order, size, and degree. Understanding these concepts is crucial for analyzing graph structures and solving complex problems.
Let’s explore these concepts step by step with interactive examples!
Order of a Graph
The order of a graph is simply the number of vertices (nodes) it contains. We denote the order of graph as or sometimes just .
Definition: If is a graph, then the order of is , the number of vertices.
Example: A Graph of Order 4
Here’s a simple graph with 4 vertices:
This graph has:
- Order = 4 (vertices: A, B, C, D)
- Size = 3 (edges: AB, BC, CD)
The order tells us how many “entities” or “objects” we’re working with in our graph.
Size of a Graph
The size of a graph is the number of edges it contains. We denote the size of graph as or sometimes just .
Definition: If is a graph, then the size of is , the number of edges.
Maximum Possible Size
An interesting question arises: What is the maximum number of edges a graph can have?
For a simple undirected graph (no loops, no multiple edges) with vertices, the maximum size is:
But why?
Think of it this way: the maximum number of edges equals the number of ways to select two vertices from vertices.
Let’s break down the reasoning:
- Select the first vertex : We have choices
- Select the second vertex : We have remaining choices
- This gives us ways to select two vertices
BUT WAIT! We’ve counted each edge twice!
The edge between vertices and is the same as the edge between and .
In an undirected graph, and represent the same edge.
Therefore, we divide by 2:
Example: Complete Graph K₄
A complete graph is a graph where every vertex is connected to every other vertex—it has the maximum possible size!
For :
- Order = 4 vertices
- Maximum Size = edges
Count them: AB, AC, AD, BC, BD, CD — exactly 6 edges!
Degree of a Vertex
The degree of a vertex is one of the most important concepts in graph theory. It tells us how “connected” a vertex is.
Definition: The degree of a vertex , denoted , is the number of edges incident to (touching) that vertex.
In simpler terms: The degree tells us how many neighbors a vertex has.
Special Cases
Isolated Vertices
A vertex with degree 0 is called an isolated vertex — it’s a lone wolf, not connected to anyone!
In this graph:
- Vertex F is isolated:
- Vertex A has the highest degree:
- Vertices B and C: ,
- Vertices D and E: ,
Minimum and Maximum Degree
For any graph , we define:
- (small delta) = the minimum degree in the graph
- (big delta) = the maximum degree in the graph
Memory Tip: Think of as the “small delta” for minimum, and as the “BIG DELTA” for maximum!
In this graph:
- (vertices v1 and v4 each have degree 1)
- (the center vertex has degree 4)
Important Note: and are properties of the entire graph, while is a property of a single vertex.
Regular Graphs
A graph where every vertex has the same degree is called a regular graph. If every vertex has degree , we call it a k-regular graph.
This is a 2-regular graph (also called a cycle graph):
- Every vertex has exactly degree 2
Degree Sequence
The degree sequence of a graph is a list of the degrees of all vertices, typically written in non-increasing order (from largest to smallest).
Definition: The degree sequence of graph is the list where and each for some vertex .
Example: Finding a Degree Sequence
Let’s calculate the degree of each vertex:
- (connected to v2, v3, v4)
- (connected to v1, v3, v5)
- (connected to v1, v2)
- (connected to v1)
- (connected to v2)
- (isolated)
Degree Sequence:
Important Property
The degree sequence is unique for each graph, but multiple different graphs can have the same degree sequence!
The Handshaking Lemma
One of the most elegant results in graph theory is the Handshaking Lemma (also called the Degree Sum Formula).
Theorem (Handshaking Lemma): The sum of all vertex degrees equals twice the number of edges.
Mathematically:
Why Is This True?
The reasoning is beautifully simple:
- Each edge connects exactly two vertices
- When we count degrees, each edge contributes to the degree of both its endpoints
- Therefore, each edge is counted exactly twice in the degree sum
Verification Example
Let’s verify the Handshaking Lemma:
Degrees:
-
-
-
-
Sum of degrees:
Number of edges: 5
Verification: ✓
The sum of degrees equals twice the number of edges!
Corollary: Even Sum Property
An immediate consequence of the Handshaking Lemma is:
The sum of all vertex degrees in any graph is always even.
This is because is always even (it’s 2 times something).
Graphic Sequences
Here’s an intriguing question: Given a sequence of numbers, can we construct a graph with that degree sequence?
Definition: A sequence of non-negative integers is called a graphic sequence if there exists a simple graph whose degree sequence is that sequence.
In other words, can we draw a graph where the vertices have exactly these degrees?
Example 1: A Graphic Sequence
Consider the sequence .
This IS graphic! We can construct a graph with this degree sequence (as shown above).
Note: The sequence remains graphic even if we remove the 0:
Example 2: A Non-Graphic Sequence (Too Many Connections)
Consider the sequence .
This is NOT graphic. Why?
- The first vertex needs degree 4, meaning it must connect to 4 other vertices
- But we only have 3 other vertices available!
- It’s impossible to satisfy this requirement
In the visualization above, even connecting v1 to all other vertices only gives it degree 3, not 4!
Example 3: A Non-Graphic Sequence (Odd Sum)
Consider the sequence .
This is NOT graphic. Why?
Let’s sum the degrees:
By the Handshaking Lemma, the sum of degrees must equal , which is always even. Since 15 is odd, this sequence cannot be graphic!
Necessary Conditions for Graphic Sequences
For a sequence to be graphic:
- Even Sum: must be even (by Handshaking Lemma)
- Degree Constraint: Each (a vertex can’t connect to more vertices than exist)
- Non-negativity: All
These conditions are necessary but not sufficient—there are sequences that satisfy all three but still aren’t graphic!
The Erdős–Gallai Theorem
There is a complete characterization of graphic sequences called the Erdős–Gallai theorem, but that’s a topic for advanced study. For now, remember:
A sequence of all zeros is always graphic (the empty graph or a graph with isolated vertices).
Practical Applications
Understanding order, size, and degree has real-world applications:
Social Networks
- Degree represents how many friends/connections a person has
- High-degree vertices are “influencers” or “hubs”
- identifies the most connected person
Computer Networks
- Degree represents how many direct connections a router has
- Higher degree = more redundancy and reliability
- But also higher cost and complexity
Biological Networks
- In protein interaction networks, degree indicates how many other proteins a given protein interacts with
- High-degree proteins are often essential for organism survival
Web Graphs
- Webpages are vertices, hyperlinks are edges
- Degree (specifically out-degree in directed graphs) indicates how many links a page has
- Google’s PageRank algorithm uses degree-based concepts
Practice Problems
Test your understanding with these problems:
Problem 1: A graph has 10 vertices and degree sequence . How many edges does it have?
Click for solution
Use the Handshaking Lemma: $\sum \deg(v) = 2|E|$ Sum of degrees: $4(3) + 6(2) = 12 + 12 = 24$ Therefore: $2|E| = 24$, so $|E| = 12$ edges.Problem 2: Is the sequence graphic?
Click for solution
First check: Sum = $5 + 4 + 3 + 2 + 1 = 15$ By the Handshaking Lemma, the sum must be even. Since 15 is odd, this sequence is NOT graphic.Problem 3: What is the maximum possible size of a graph with 8 vertices?
Click for solution
Use the formula: $\frac{n(n-1)}{2} = \frac{8(7)}{2} = \frac{56}{2} = 28$ edges. This would be the complete graph $K_8$.Problem 4: In a graph with 6 vertices, if , what is the minimum number of edges?
Click for solution
If every vertex has degree at least 2, then: $\sum \deg(v) \geq 6 \times 2 = 12$ By Handshaking Lemma: $2|E| \geq 12$, so $|E| \geq 6$ edges minimum.Summary
Let’s recap the key concepts we’ve covered:
Basic Definitions:
- Order : Number of vertices in the graph
- Size : Number of edges in the graph
- Maximum Size: for vertices (complete graph)
Degree Concepts:
- Degree : Number of edges touching vertex
- Isolated Vertex: A vertex with degree 0
- : Minimum degree in graph
- : Maximum degree in graph
Advanced Topics:
- Degree Sequence: List of all vertex degrees in non-increasing order
- Handshaking Lemma: (sum of degrees equals twice the number of edges)
- Graphic Sequence: A sequence that can be realized as the degree sequence of some graph
These fundamental concepts form the building blocks for understanding more advanced graph theory topics. Master them, and you’ll have a solid foundation for exploring algorithms, optimization problems, and complex network analysis!
Explore More
Ready to create your own graphs and experiment with these concepts?
👉 Visit the GraphArena Playground to build graphs and calculate their properties interactively!
Try creating graphs with different degree sequences and see if you can verify the Handshaking Lemma yourself!