Package com.jgalgo.alg.clique
Class MaximalIndependentSetsEnumeratorAbstract
java.lang.Object
com.jgalgo.alg.clique.MaximalIndependentSetsEnumeratorAbstract
- All Implemented Interfaces:
MaximalIndependentSetsEnumerator
- Direct Known Subclasses:
MaximalIndependentSetsEnumeratorComplementCliques
public abstract class MaximalIndependentSetsEnumeratorAbstract
extends Object
implements MaximalIndependentSetsEnumerator
Abstract class for enumerating over all maximal independent sets 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 TypeMethodDescriptionmaximalIndependentSetsIter
(Graph<V, E> g) Iterate over all maximal independent sets in a graph.
-
Constructor Details
-
MaximalIndependentSetsEnumeratorAbstract
public MaximalIndependentSetsEnumeratorAbstract()Default constructor.
-
-
Method Details
-
maximalIndependentSetsIter
Description copied from interface:MaximalIndependentSetsEnumerator
Iterate over all maximal independent sets 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:
maximalIndependentSetsIter
in interfaceMaximalIndependentSetsEnumerator
- Type Parameters:
V
- the vertices typeE
- the edges type- Parameters:
g
- a graph- Returns:
- an iterator that iterates over all maximal independent sets in the graph
-