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