Guided lesson

Graphs

Graphs

Graphs

Core

Mental model

  • Graphs can be directed or undirected.

Operations

add node

Cost shape

Traversal O(V + E)

Watch out

Not marking visited.

Related algorithms

BFSDFSDijkstra Shortest Path
Guided progression
10% lesson
Step 1 / 2Learner goal
Speech settings Speed 1.0 · Volume 90%

Keyboard: Space play/pause · Arrow keys step · Page Up/Down change sections · R restart