Removed result from getshortestroute

This commit is contained in:
glax 2023-04-24 19:38:51 +02:00
parent f19aa0007e
commit 923cbee280

View File

@ -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);