Interface CycleCounter

All Known Implementing Classes:
CycleCounter2LP, CycleCounter3LP

public interface CycleCounter
Interface for cycle counting algorithms.
  • Method Details

    • initializeForN

      void initializeForN()
      Initialize this cycle counter for a new factor argument.
    • addPartial

      int addPartial​(Partial partial, int correctSmoothCount)
      Counts the number of independent cycles in the partial relations.
      Parameters:
      partial - the newest partial relation to add
      correctSmoothCount - the correct number of smooths from partials (only for debugging)
      Returns:
      the updated number of smooths from partials
    • getPartialRelations

      java.util.HashSet<Partial> getPartialRelations()
      Returns:
      the partial relations found so far
    • getPartialRelationsCount

      int getPartialRelationsCount()
      Returns:
      number of partial relations found so far.
    • getCycleCount

      int getCycleCount()
      Returns:
      the number of cycles counted by this algorithm