Class StagedGraphTraversal
- Object
-
- BasicGraphTraversal
-
- StagedGraphTraversal
-
- All Implemented Interfaces:
GraphTraversal
public class StagedGraphTraversal extends BasicGraphTraversal
- Author:
- Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
-
-
Field Summary
-
Fields inherited from interface GraphTraversal
CONTINUE, KILL_BRANCH, STOP, SUSPEND
-
-
Constructor Summary
Constructors Constructor Description StagedGraphTraversal(Graph graph, GraphWalker walker, GraphIterator iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
Resets the visited flag and counts of all nodes of the graph.boolean
isVisited(Graphable g)
void
setVisited(Graphable g, boolean visited)
-
Methods inherited from class BasicGraphTraversal
getGraph, getIterator, getWalker, setGraph, setIterator, setWalker, traverse
-
-
-
-
Constructor Detail
-
StagedGraphTraversal
public StagedGraphTraversal(Graph graph, GraphWalker walker, GraphIterator iterator)
-
-
Method Detail
-
init
public void init()
Description copied from class:BasicGraphTraversal
Resets the visited flag and counts of all nodes of the graph.- Specified by:
init
in interfaceGraphTraversal
- Overrides:
init
in classBasicGraphTraversal
- See Also:
GraphTraversal.init()
-
isVisited
public boolean isVisited(Graphable g)
- Specified by:
isVisited
in interfaceGraphTraversal
- Overrides:
isVisited
in classBasicGraphTraversal
-
setVisited
public void setVisited(Graphable g, boolean visited)
- Specified by:
setVisited
in interfaceGraphTraversal
- Overrides:
setVisited
in classBasicGraphTraversal
-
-