public IEdge <V, E> GetEdge(IVertex <V> start, IVertex <V> end) { var index = new VertexPair <V>(start, end); return(edgeCollection[index]); }
public Edge(IVertex <V> start, IVertex <V> end, E value) { Pair = new VertexPair <V>(start, end); Value = value; }
public bool Equals(VertexPair <V> vertexPair) { return(vertexPair.Start.Equals(Start) && vertexPair.End.Equals(End)); }