Minor refactoring.
Choosed a more intuitive name for data type.
Minor refactoring.
Tests for WeightedGraph implementations.