EdgeWeightedGrap implemented