Polished `WeightedGraphGenerator` class;