public class SCCIterator<T> extends Object implements Iterator<Set<T>>
Constructor and Description |
---|
SCCIterator(Graph<T> G)
Construct an enumeration across the SCCs of a given graph.
|
SCCIterator(Graph<T> G,
Iterator<T> nodes)
Construct an enumeration of the SCCs of the subset of a given graph
determined by starting at a given set of nodes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Determine whether there are any more SCCs remaining in this enumeration.
|
Set<T> |
next()
Find the next SCC in this enumeration
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SCCIterator(Graph<T> G) throws NullPointerException
G
- The graph over which to construct SCCsNullPointerException
- if G is nullpublic boolean hasNext()
public Set<T> next() throws NoSuchElementException
next
in interface Iterator<Set<T>>
NoSuchElementException
public void remove() throws UnsupportedOperationException
remove
in interface Iterator<Set<T>>
UnsupportedOperationException