Interface PartitioningAlgorithm.Partitioning<V>

Type Parameters:
V - the vertex type
All Superinterfaces:
Iterable<Set<V>>
All Known Implementing Classes:
PartitioningAlgorithm.PartitioningImpl
Enclosing interface:
PartitioningAlgorithm<V>

public static interface PartitioningAlgorithm.Partitioning<V> extends Iterable<Set<V>>
  • Method Details

    • getNumberPartitions

      int getNumberPartitions()
      Get the number of partitions.
      Returns:
      the number of partitions
    • getPartition

      Set<V> getPartition(int index)
      Get the index-th partition (0-based).
      Parameters:
      index - index of the partition to return
      Returns:
      the index-th partition
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= getNumberPartitions())
    • getPartitions

      default List<Set<V>> getPartitions()
      Get the partitions. This method returns a partitioning of the vertices in the graph into disjoint partitions.
      Returns:
      a list of partitions