Data Structures
Graphs:Adjacency List, Matrix, Directed and Weighted — Pick the Layout First
A graph is vertices and edges. Adjacency list vs matrix, directed vs undirected, weighted vs not — choose the representation before you think about an algorithm.
Read More