N - node classE - edge classD - user data classpublic interface GraphTraversalVisitor<N,E,D>
This interface declares methods that are called upon basic graph traversal actions.
| Modifier and Type | Method and Description |
|---|---|
void |
backtrackEdge(N srcNode,
D srcData,
E edge,
N tgtNode,
D tgtData) |
void |
finishExploration(N node,
D inData)
Called when the exploration of a node is finished.
|
GraphTraversalAction |
processEdge(N srcNode,
D srcData,
E edge,
N tgtNode,
Holder<D> outData)
Called when an edge is processed.
|
GraphTraversalAction |
processInitial(N initialNode,
Holder<D> outData)
Called when a node is processed initially.
|
boolean |
startExploration(N node,
D data)
Called when the exploration of a node is started.
|
GraphTraversalAction processInitial(N initialNode, Holder<D> outData)
initialNode - the node that is processedboolean startExploration(N node, D data)
node - the node which's exploration is about to be starteddata - the user data associated with this nodevoid finishExploration(N node, D inData)
node - the node which's exploration is being finishedinData - the user data associated with this nodeGraphTraversalAction processEdge(N srcNode, D srcData, E edge, N tgtNode, Holder<D> outData)
srcNode - the source nodesrcData - the user data associated with the source nodeedge - the edge that is being processedCopyright © 2018. All rights reserved.