Class IncreasingSubsetIterator<T>

java.lang.Object
org.tweetyproject.commons.util.SubsetIterator<T>
org.tweetyproject.commons.util.IncreasingSubsetIterator<T>
Type Parameters:
T - The element class which is iterated.
All Implemented Interfaces:
Iterator<Set<T>>

public class IncreasingSubsetIterator<T> extends SubsetIterator<T>
Iterates over all subsets of a given set. This iterator first returns the empty set, then all 1-element subsets, then all 2-element subsets,...
Author:
Matthias Thimm
  • Constructor Details

    • IncreasingSubsetIterator

      public IncreasingSubsetIterator(Set<T> set)
      Creates a new subset iterator for the given set.
      Parameters:
      set - some set.
  • Method Details