Exemplo n.º 1
0
 /// <summary>
 /// Adds new track to the graph. Used by the graph loader.
 /// </summary>
 /// <param name="trackInfo">track info to add</param>
 internal void AddTrack(TrackInfo trackInfo) => this.tourGraph.AddEdge(trackInfo);
Exemplo n.º 2
0
 /// <summary>
 /// Gets an edge weight for track info to optimize for shortest time traveled.
 /// </summary>
 /// <param name="edge">edge to use</param>
 /// <returns>edge weight</returns>
 private static double GetEdgeWeightShortestTime(TrackInfo edge)
 {
     return(edge.Duration.TotalMinutes);
 }