public bool isBetterThan(Route other) { return other == null || other.Length < Length || (other.Length == Length && other.VertexLast.Height > VertexLast.Height) || (other.Length == Length && other.VertexLast.Height == VertexLast.Height && other.VertexFirst.Height < VertexFirst.Height); }
public Vertex(VertexMap map, int i, int j, int height) { Map = map; LongestRoute = new Route(this); I = i; J = j; Height = height; }
public void AppendRoute(Route route) { if (route != null && this != route) Vertexes.AddRange(route.Vertexes); }