This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingFrom an edge list, give every vertex the list of its neighbours.
What this asks
Store a graph as neighbour lists.
Give every vertex a list; add each edge to one list, or to both when undirected.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing