public Path(List <TNodeId> route, double length) { var tmp = new TNodeId[route.Count]; route.CopyTo(tmp); Route = tmp.ToList(); Length = length; }
/// <summary> /// Initialize a new Edge with destination and optionally a cost. /// </summary> public Edge(TNodeId destination, double cost = 0d) { Destination = destination; Cost = cost; }