EdgeWeightedGraph needs more testing