public interface Partitioner
Modifier and Type | Method and Description |
---|---|
int |
getSize()
Returns the current size of produced partitions
|
List<List<Node>> |
partition(Graph g,
Iterable<? extends Node> nodes,
RelationshipWeighter rweight)
Partition the set of nodes into the specified number of blocks aiming to minimize the edge
cut as specified by the RelationshipWeighter.
|
double |
partition(Graph g,
Iterable<? extends Node> nodes,
RelationshipWeighter rweight,
List<? extends Collection<Node>> partition)
Partition the set of nodes into the specified number of blocks aiming to minimize the edge
cut as specified by the RelationshipWeighter.
|
void |
setSize(int size)
Define the size of the partition, i.e.
|
void setSize(int size)
size
- Size of the partitionint getSize()
List<List<Node>> partition(Graph g, Iterable<? extends Node> nodes, RelationshipWeighter rweight)
nodes
- Iterable over a set of nodes. It is assumed, that no node occurs multiple times during iteration.rweight
- RelationshipWeighter defining the strength of relationships taken into account by the partitioning algorithm.double partition(Graph g, Iterable<? extends Node> nodes, RelationshipWeighter rweight, List<? extends Collection<Node>> partition)
nodes
- Iterable over a set of nodes. It is assumed, that no node occurs multiple times during iteration.rweight
- RelationshipWeighter defining the strength of relationships taken into account by the partitioning algorithm.partition
- Initialized partition containerCopyright © 2018 University of California, Santa Cruz. All rights reserved.