Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 /// <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));
 }