Weighted Graph Representation - Adjacency List - Creating Edge Class