Interface PartitioningAlgorithm.Partitioning<V>

    • Method Detail

      • getNumberPartitions

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

        java.util.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:
        java.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= getNumberPartitions())
      • getPartitions

        default java.util.List<java.util.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