Package org.graph4j.traversal
Class LexBFSIteratorInt
java.lang.Object
org.graph4j.traversal.LexBFSIteratorInt
- All Implemented Interfaces:
IntIterator
Deprecated.
A variant of LexBFS that returns vertex numbers instead of
SearchNode
objects.- Author:
- Cristian Frăsinaru
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLexBFSIteratorInt(Graph graph) Deprecated.Creates an iterator starting with the first vertex of the graph (the one at index 0)LexBFSIteratorInt(Graph graph, int start) Deprecated.Creates an iterator starting with the specified vertex. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graph4j.util.IntIterator
remove
-
Constructor Details
-
LexBFSIteratorInt
Deprecated.Creates an iterator starting with the first vertex of the graph (the one at index 0)- Parameters:
graph- the input graph.
-
LexBFSIteratorInt
Deprecated.Creates an iterator starting with the specified vertex.- Parameters:
graph- the input graph.start- the start vertex number.- Throws:
InvalidVertexException- if the graph does not contain the start vertex.
-
-
Method Details
-
hasNext
public boolean hasNext()Deprecated.Description copied from interface:IntIteratorReturnstrueif the iteration has more elements.- Specified by:
hasNextin interfaceIntIterator- Returns:
trueif the iteration has more elements,falseotherwise.
-
next
public int next()Deprecated.Description copied from interface:IntIteratorReturns the next element in the iteration.- Specified by:
nextin interfaceIntIterator- Returns:
- the next element in the iteration.
-