[Prac 15] Added the WeightedGraph class from practical 15