Package org.graph4j.clique
Class DFSCliqueIterator
java.lang.Object
org.graph4j.SimpleGraphAlgorithm
org.graph4j.clique.DFSCliqueIterator
- All Implemented Interfaces:
CliqueIterator
Iterates over all cliques in a graph in a DFS manner. The cliques are ordered
lexicographically by their sequence of numbers.
- Author:
- Cristian Frăsinaru
-
Field Summary
Fields inherited from class org.graph4j.SimpleGraphAlgorithm
graph -
Constructor Summary
ConstructorsConstructorDescriptionDFSCliqueIterator(Graph graph) DFSCliqueIterator(Graph graph, int minSize, int maxSize) DFSCliqueIterator(Graph graph, int minSize, int maxSize, long timeout) -
Method Summary
Methods inherited from class org.graph4j.SimpleGraphAlgorithm
getGraphMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graph4j.clique.CliqueIterator
getAll
-
Constructor Details
-
DFSCliqueIterator
-
DFSCliqueIterator
- Parameters:
graph- the input graph.minSize- the minimum size of a clique.maxSize- the maximum size of a clique.
-
DFSCliqueIterator
- Parameters:
graph- the input graph.minSize- the minimum size of a clique.maxSize- the maximum size of a clique.timeout- timeout in milliseconds.
-
-
Method Details
-
next
- Specified by:
nextin interfaceCliqueIterator- Returns:
- the next element in the iteration.
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceCliqueIterator- Returns:
trueif the iteration has more elements.
-