Adding getEdgeList and getWeight methods