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.
| Feature | Meaning |
|---|---|
| Vertex | An object or location |
| Edge | A connection |
| Degree | Number of edge ends at a vertex |
| Loop | An edge joining a vertex to itself |
| Multiple edges | More than one edge joins the same pair |
| Directed edge | An arrow restricts travel direction |
| Weight | A distance, cost, time or other value |
A loop contributes 2 to degree. The total degree equals twice the number of edges.