V - the vertex typepublic static interface PartitioningAlgorithm.Partitioning<V>
extends java.lang.Iterable<java.util.Set<V>>
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberPartitions()
Get the number of partitions.
|
java.util.Set<V> |
getPartition(int index)
Get the index-th partition (0-based).
|
default java.util.List<java.util.Set<V>> |
getPartitions()
Get the partitions.
|
int getNumberPartitions()
java.util.Set<V> getPartition(int index)
index - index of the partition to returnjava.lang.IndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= getNumberPartitions())default java.util.List<java.util.Set<V>> getPartitions()
Copyright © 2019. All Rights Reserved.