예제 #1
0
 public Node Neighbor(int r, int d)
 {
     // r - route
     // d - direction
     return(graph.GetNode(graph.routes[r].Near(n, d)));
 }
예제 #2
0
 public AdjNode(Graph g, int nn, int rn)
 {
     graph = g;
     node = g.GetNode(nn);
     route = rn;
 }
예제 #3
0
 public AdjNode(Graph g, int nn, int rn)
 {
     graph = g;
     node  = g.GetNode(nn);
     route = rn;
 }