Exemplo n.º 1
0
 private static PathSegment CreateSegment(Record currentRecord)
 {
     return(PathSegment.Create(currentRecord.PreviousVertex, currentRecord.Vertex,
                               currentRecord.PreviousVertex.Links.Single(link => link.Destination == currentRecord.Vertex).Weight));
 }
Exemplo n.º 2
0
 internal void AddSegment(PathSegment segment)
 {
     Destination = segment.Destination;
     _segments.Add(segment);
 }