} // end of WayPoint CreateNewEdge() /// <summary> /// Create an edge with the given direction. /// </summary> /// <param name="n0"></param> /// <param name="n1"></param> /// <param name="direction"></param> /// <returns></returns> public static Edge CreateNewEdge(Node n0, Node n1, Edge.Direction direction) { Edge e = CreateNewEdge(n0, n1); e.Dir = direction; return(e); }
public SingleOrder(string origin, string dest, double weight, double maxVolume, Edge.Direction direction) { Origin = origin; Dest = dest; Direction = direction; Weight = weight; Rate = GetNormalizedWeight(weight); MaxVolume = maxVolume; }