/// <summary> /// Returns true if the given object equals this one. /// </summary> /// <param name="other"></param> /// <returns></returns> protected bool Equals(PathSegment <TIdType> other) { return(EqualityComparer <TIdType> .Default.Equals(VertexId, other.VertexId) && Weight.Equals(other.Weight) && Equals(From, other.From)); }
/// <summary> /// Creates a new linked vertex. /// </summary> public PathSegment(TIdType vertexId, double weight, PathSegment <TIdType> from) { this.VertexId = vertexId; this.Weight = weight; this.From = from; }
/// <summary> /// Concatenates this path after the given path. /// </summary> /// <param name="path"></param> /// <returns></returns> public PathSegment <TIdType> ConcatenateAfter(PathSegment <TIdType> path) { return(this.ConcatenateAfter(path, null)); }