Interface PostOrderDfsVisitor<T>

Type Parameters:
T - Resul of traversal

@Beta @PublicApi public interface PostOrderDfsVisitor<T>
Function passed for DFS post order traversal.

Instances of this interface can be passed to Util.traversePostOrderDFS(com.chemaxon.clustering.util.PostOrderDfsVisitor, com.chemaxon.clustering.common.IDBasedHierarchicClustering)

An instance of this interface represents the mutable state of a post order DFS tree traversal. visit(com.chemaxon.clustering.common.IDBasedHierarchicCluster, java.util.List, int) represents the visit of the clusters.

Traversal is done according the order in the structure. Each cluster is visited at most once. Visit invoked as soon as possible: either when all children visited or when children visit skip signalled.

Please note that this interface is marked with Beta annotation, so it can be subject of incompatible changes or removal in later releases.

See Also: