/// <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);
/// <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); }