Class BoundedCliqueIterator

java.lang.Object
org.graph4j.SimpleGraphAlgorithm
org.graph4j.clique.BoundedCliqueIterator
All Implemented Interfaces:
CliqueIterator

@Deprecated public class BoundedCliqueIterator extends SimpleGraphAlgorithm implements CliqueIterator
Deprecated.
Uses BronKerboschCliqueIterator in order to iterate through the cliques of specified sizes. Slower than DFSCliqueIterator.
Author:
Cristian Frăsinaru
  • Constructor Details

    • BoundedCliqueIterator

      public BoundedCliqueIterator(Graph graph, int minSize, int maxSize)
      Deprecated.
      Parameters:
      graph - the input graph.
      minSize - the minimum size of a clique.
      maxSize - the maximum size of a clique.
    • BoundedCliqueIterator

      public BoundedCliqueIterator(Graph graph, int minSize, int maxSize, long timeout)
      Deprecated.
      Parameters:
      graph - the input graph.
      minSize - the minimum size of a clique.
      maxSize - the maximum size of a clique.
      timeout - timeout in milliseconds.
  • Method Details

    • next

      public Clique next()
      Deprecated.
      Specified by:
      next in interface CliqueIterator
      Returns:
      the next element in the iteration.
    • hasNext

      public boolean hasNext()
      Deprecated.
      Specified by:
      hasNext in interface CliqueIterator
      Returns:
      true if the iteration has more elements.