A graph where each edge is a weighted edge.
Representations
We can denote a function that receives a set of edge pairs, and returns a set of equal size that contains the weight of every edge respective to the set of edge pairs.
This means that the AB edge has a weight of 3, the BC edge has a weight of 6 and so on.
Weighted path length
The weighted path length of a path is the sum of the weights of the edges within the path.