Weighted-graph

added weighting to edges between nodes.