V - the vertex typepublic static interface PartitioningAlgorithm.Partitioning<V> extends Iterable<Set<V>>
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberPartitions()
Get the number of partitions.
|
Set<V> |
getPartition(int index)
Get the index-th partition (0-based).
|
default List<Set<V>> |
getPartitions()
Get the partitions.
|
forEach, iterator, spliteratorint getNumberPartitions()
Set<V> getPartition(int index)
index - index of the partition to returnIndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= getNumberPartitions())Copyright © 2018. All rights reserved.