Weight and ShortestPath Added

Add weight and shortest path methods