public bool Equals(GraphPath <TVertex, TEdge> other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(AreEquals(other)); }
protected virtual bool AreEquals(GraphPath <TVertex, TEdge> other) { return(_vertices.SequenceEqual(other._vertices)); }