Removed result from getshortestroute
This commit is contained in:
parent
f19aa0007e
commit
923cbee280
@ -77,12 +77,6 @@ public class Server
|
||||
$"Remaining {((DateTime.Now - start)/loaded)*(allFiles.Count-loaded)}");
|
||||
}
|
||||
|
||||
Dictionary<PathResult, string> sortedCalcTime = results.OrderBy(result => result.Key.calcTime).ToDictionary(item => item.Key, item =>item.Value);
|
||||
foreach (KeyValuePair<PathResult, string> kv in sortedCalcTime)
|
||||
{
|
||||
Console.WriteLine($"{kv.Key.distance:0.0} {kv.Key.weight:0.00} {kv.Key.calcTime} {kv.Value}");
|
||||
}
|
||||
|
||||
KeyValuePair<PathResult, string> shortest = results.MinBy(result => result.Key.distance);
|
||||
KeyValuePair<PathResult, string> fastest = results.MinBy(result => result.Key.weight);
|
||||
KeyValuePair<PathResult, string> calcTime = results.MinBy(result => result.Key.calcTime);
|
||||
|
Loading…
Reference in New Issue
Block a user