Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public Vertex(VertexMap map, int i, int j, int height)
 {
     Map = map;
     LongestRoute = new Route(this);
     I = i;
     J = j;
     Height = height;
 }
Esempio n. 3
0
 public void AppendRoute(Route route)
 {
     if (route != null && this != route) Vertexes.AddRange(route.Vertexes);
 }