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