SPM Tuition
Subject

5.1 Network: Vertices and edges

Vertices and edges

A graph represents objects as vertices and connections as edges. A network uses a graph to model real connections.

FeatureMeaning
VertexAn object or location
EdgeA connection
DegreeNumber of edge ends at a vertex
LoopAn edge joining a vertex to itself
Multiple edgesMore than one edge joins the same pair
Directed edgeAn arrow restricts travel direction
WeightA distance, cost, time or other value
A graph with vertices A, B, C, D and E. B and C are joined by two edges. E has a loop. The degrees are A 3, B 3, C 3, D 3 and E 4.
8 edges. Total degree = 3 + 3 + 3 + 3 + 4 = 16 = 2 × 8.

A loop contributes 2 to degree. The total degree equals twice the number of edges.