Package org.graph4j.clique
Class BFSCliqueIterator
java.lang.Object
org.graph4j.SimpleGraphAlgorithm
org.graph4j.clique.BFSCliqueIterator
- All Implemented Interfaces:
CliqueIterator
Iterates over all cliques in a graph in a BFS manner. The cliques are ordered
first by their size and second by their number.
- Author:
- Cristian Frăsinaru
-
Field Summary
Fields inherited from class org.graph4j.SimpleGraphAlgorithm
graph -
Constructor Summary
ConstructorsConstructorDescriptionBFSCliqueIterator(Graph graph) BFSCliqueIterator(Graph graph, int minSize, int maxSize) -
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
-
BFSCliqueIterator
-
BFSCliqueIterator
- Parameters:
graph- the input graph.minSize- the minimum size of a clique.maxSize- the maximum size of a clique.
-
-
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.
-