jetbrains.buildServer.util.graph
Interface DFSVisitor<T>

All Known Implementing Classes:
DFSVisitorAdapter

public interface DFSVisitor<T>

Author:
dmitry.neverov

Method Summary
 boolean discover(T node)
          Called when the node first discovered
 void finish(T node)
          Called when node and all its parents are processed
 

Method Detail

discover

boolean discover(@NotNull
                 T node)
Called when the node first discovered

Parameters:
node - discovered node
Returns:
true if node's parents should be added to the search, false otherwise

finish

void finish(@NotNull
            T node)
Called when node and all its parents are processed

Parameters:
node - processed node