Exemplo n.º 1
0
 /** Initializes the path.
  * Traces the path from the start node.
  */
 protected override void Initialize()
 {
     if (startNode != null && flood.HasPathTo(startNode))
     {
         Trace(startNode);
         CompleteState = PathCompleteState.Complete;
     }
     else
     {
         FailWithError("Could not find valid start node");
     }
 }
Exemplo n.º 2
0
 public override bool Suitable(GraphNode node)
 {
     return(base.Suitable(node) && path.HasPathTo(node));
 }