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 GraphTraversalAction processInitial(N initialNode, Holder<D> outData)
GraphTraversalVisitor
processInitial
in interface GraphTraversalVisitor<N,E,D>
initialNode
- the node that is processedpublic boolean startExploration(N node, D data)
GraphTraversalVisitor
startExploration
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)
GraphTraversalVisitor
finishExploration
in interface GraphTraversalVisitor<N,E,D>
node
- the node which's exploration is being finisheddata
- the user data associated with this nodepublic GraphTraversalAction processEdge(N srcNode, D srcData, E edge, N tgtNode, Holder<D> outData)
GraphTraversalVisitor
processEdge
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 © 2015. All rights reserved.