/** 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"); } }
public override bool Suitable(GraphNode node) { return(base.Suitable(node) && path.HasPathTo(node)); }