Create WeightedGraph.java