33
Weighted Graph Representation
(cont)
Adjacency lists representation with weights:
Note: if undirected, each edge appears twice with same weight