Introduce Graph.HasEdge() and WeightedGraph.HasWeightedEdge().