private static RouteWithDistanceFromStart StartRoute(City origin) { var initialRoute = new RouteWithDistanceFromStart(); initialRoute.AppendCity(origin, 0); return(initialRoute); }
public object Clone() { var clone = new RouteWithDistanceFromStart(); foreach (var city in Cities) { clone.AppendCity(city, 0); } clone.DistanceFromStart = DistanceFromStart; return(clone); }
private static RouteWithDistanceFromStart StartRoute(City origin) { var initialRoute = new RouteWithDistanceFromStart(); initialRoute.AppendCity(origin, 0); return initialRoute; }
public object Clone() { var clone = new RouteWithDistanceFromStart(); foreach (var city in Cities) clone.AppendCity(city, 0); clone.DistanceFromStart = DistanceFromStart; return clone; }