public class DefaultGraphTraversalVisitor<N,E,D> extends Object implements GraphTraversalVisitor<N,E,D>
| Constructor and Description |
|---|
DefaultGraphTraversalVisitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
backtrackEdge(N srcNode,
D srcData,
E edge,
N tgtNode,
D tgtData) |
void |
finishExploration(N node,
D data)
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.
|
public DefaultGraphTraversalVisitor()
public GraphTraversalAction processInitial(N initialNode, Holder<D> outData)
GraphTraversalVisitorprocessInitial in interface GraphTraversalVisitor<N,E,D>initialNode - the node that is processedpublic boolean startExploration(N node, D data)
GraphTraversalVisitorstartExploration in interface GraphTraversalVisitor<N,E,D>node - the node which's exploration is about to be starteddata - the user data associated with this nodepublic void finishExploration(N node, D data)
GraphTraversalVisitorfinishExploration in interface GraphTraversalVisitor<N,E,D>node - the node which's exploration is being finishedpublic GraphTraversalAction processEdge(N srcNode, D srcData, E edge, N tgtNode, Holder<D> outData)
GraphTraversalVisitorprocessEdge in interface GraphTraversalVisitor<N,E,D>srcNode - the source nodesrcData - the user data associated with the source nodeedge - the edge that is being processedpublic void backtrackEdge(N srcNode, D srcData, E edge, N tgtNode, D tgtData)
backtrackEdge in interface GraphTraversalVisitor<N,E,D>Copyright © 2013. All Rights Reserved.