blog - edgeWeighted graph