示例#1
0
            public Path(List <TNodeId> route, double length)
            {
                var tmp = new TNodeId[route.Count];

                route.CopyTo(tmp);
                Route = tmp.ToList();

                Length = length;
            }
示例#2
0
 /// <summary>
 /// Initialize a new Edge with destination and optionally a cost.
 /// </summary>
 public Edge(TNodeId destination, double cost = 0d)
 {
     Destination = destination;
     Cost        = cost;
 }