예제 #1
0
 public bool HasEdge(int u, int v, Constants.D_TYPES s)
 {
     foreach (Direction d in childNodes[u])
     {
         if ((d.n == v) && (d.d == s))
         {
             return(true);
         }
     }
     return(false);
 }
예제 #2
0
 public void AddEdge(int u, int v, Constants.D_TYPES d)
 {
     childNodes[u].Add(new Direction(v, d));
 }
예제 #3
0
 public Direction(int n, Constants.D_TYPES d)
 {
     this.n = n;
     this.d = d;
 }