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