The idea
Key formulas
Graph
Undirected edge
Path
Loading lessons…
Just a moment, getting everything ready. The first load can take up to a minute.
Discrete maths
Graphs model relationships as vertices joined by edges; breadth-first and depth-first search reveal how to explore them.
A graph consists of vertices and edges . In an undirected graph, an edge joins two vertices in both directions. A path is a sequence of adjacent vertices; a connected component is a maximal group joined by paths.