|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodePartitionVisitor
A Visitor which is used by partitioning algorithms to return the partitions which were found.
PartitioningAlg
Method Summary | |
---|---|
void |
addNode(Node v)
Has to be invoked exactly once for all nodes of the graph, properly enclosed by calls to start/endPartition(). |
void |
endPartition()
Has to be invoked after all calls to addNode of a partition. |
void |
finish()
Has to be invoked after processing of the ParititioningAlg is complete. |
int |
getNumPartitions()
Get the number of partitions found. |
void |
init(Graph g)
Has to be invoked before the actual processing of the PartitioningAlg starts. |
void |
startPartition()
Has to be invoked before all calls to addNode of a partition. |
Method Detail |
---|
void init(Graph g)
g
- the graph which shall be processed.void startPartition()
void addNode(Node v)
v
- a node which belongs to the current partition, started with
a call to startPartition().void endPartition()
void finish()
int getNumPartitions()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |