Package com.jgalgo.alg.clique
Class MaximalCliquesEnumeratorAbstract
java.lang.Object
com.jgalgo.alg.clique.MaximalCliquesEnumeratorAbstract
- All Implemented Interfaces:
MaximalCliquesEnumerator
- Direct Known Subclasses:
MaximalCliquesEnumeratorBronKerbosch
,MaximalCliquesEnumeratorBronKerboschPivot
public abstract class MaximalCliquesEnumeratorAbstract
extends Object
implements MaximalCliquesEnumerator
Abstract class for enumerating over all maximal cliques in a graph.
The class implements the interface by solving the problem on the index graph and then maps the results back to the original graph. The implementation for index graphs is abstract and left to the subclasses.
- Author:
- Barak Ugav
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmaximalCliquesIter
(Graph<V, E> g) Iterate over all maximal cliques in a graph.
-
Constructor Details
-
MaximalCliquesEnumeratorAbstract
public MaximalCliquesEnumeratorAbstract()Default constructor.
-
-
Method Details
-
maximalCliquesIter
Description copied from interface:MaximalCliquesEnumerator
Iterate over all maximal cliques in a graph.The input graph should not be changed during the iteration.
If
g
isIntGraph
, the returned iterator will be iterate overIntSet
.- Specified by:
maximalCliquesIter
in interfaceMaximalCliquesEnumerator
- Type Parameters:
V
- the vertices typeE
- the edges type- Parameters:
g
- a graph- Returns:
- an iterator that iterates over all maximal cliques in the graph
-