Interface PartitioningAlgorithm.Partitioning<V>

    • Method Detail

      • 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