public VertexInDateBase(int id, PointCoordinates coordinates, PriorityVertex priorityVertex, ArcInDateBase[] arcs, int numberZone) { if (coordinates == null || arcs == null) { throw new ArgumentNullException(); } if (arcs.Length == 0) { throw new ArgumentException(); } }
public Vertex(int id, PointCoordinates coordinates, PriorityVertex priority, int zone) { if (coordinates == null) { throw new ArgumentNullException(); } if (id == 0) { throw new ArgumentException(); } this.Id = id; this.Coordinates = coordinates; this.Priority = priority; this.Zone = zone; this.Zone0 = null; }
public List<ArcInDateBase> Arcs; // Дуги этой вершины public VertexInDateBase(int id, PointCoordinates coordinates, PriorityVertex priorityVertex, List<ArcInDateBase> arcs) { if (id == null || coordinates == null || arcs == null) { throw new ArgumentNullException(); } if (arcs.Count == 0) { throw new ArgumentException(); } }