Class MaximalIndependentSetsEnumeratorAbstract

    • Constructor Detail

      • MaximalIndependentSetsEnumeratorAbstract

        public MaximalIndependentSetsEnumeratorAbstract()
        Default constructor.
    • Method Detail

      • maximalIndependentSetsIter

        public <V,​E> Iterator<Set<V>> maximalIndependentSetsIter​(Graph<V,​E> g)
        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 is IntGraph, the returned iterator will be iterate over IntSet.

        Specified by:
        maximalIndependentSetsIter in interface MaximalIndependentSetsEnumerator
        Type Parameters:
        V - the vertices type
        E - the edges type
        Parameters:
        g - a graph
        Returns:
        an iterator that iterates over all maximal independent sets in the graph