Weighted Graph Representations
Adjacency matrix representation with weights:
Note: need distinguished value to indicate "no edge".