Search this API

y.layout
Class PartitionLayouter.EdgeBetweennessPartitionFinder

java.lang.Object
  extended by y.layout.PartitionLayouter.EdgeBetweennessPartitionFinder
All Implemented Interfaces:
PartitionLayouter.PartitionFinder
Enclosing class:
PartitionLayouter

public static class PartitionLayouter.EdgeBetweennessPartitionFinder
extends Object
implements PartitionLayouter.PartitionFinder

PartitionFinder implementation that uses Groups.edgeBetweennessClustering(y.base.Graph, y.base.NodeMap, boolean, int, int, y.base.DataProvider) as partition strategy.


Constructor Summary
PartitionLayouter.EdgeBetweennessPartitionFinder()
           
 
Method Summary
 void findPartitions(LayoutGraph graph, NodeMap clusterIDMap)
          Returns a partition id for each node of an input graph.
 int getMaximumPartitionCount()
          Returns the maximum number of partitions that this class should return.
 int getMinimumPartitionCount()
          Returns the minimum number of partitions that this class should return.
 void setMaximumPartitionCount(int maximumPartitionCount)
          Sets the maximum number of partitions that this class should return.
 void setMinimumPartitionCount(int minimumPartitionCount)
          Sets the minimum number of partitions that this class should return.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionLayouter.EdgeBetweennessPartitionFinder

public PartitionLayouter.EdgeBetweennessPartitionFinder()
Method Detail

findPartitions

public void findPartitions(LayoutGraph graph,
                           NodeMap clusterIDMap)
Description copied from interface: PartitionLayouter.PartitionFinder
Returns a partition id for each node of an input graph. Nodes that share a common partition id will be considered to belong to the same partition.

Specified by:
findPartitions in interface PartitionLayouter.PartitionFinder
Parameters:
graph - the input graph
clusterIDMap - used to return the resulting partition ids

getMaximumPartitionCount

public int getMaximumPartitionCount()
Returns the maximum number of partitions that this class should return. By default there is no limit to the number of returned partitions.


setMaximumPartitionCount

public void setMaximumPartitionCount(int maximumPartitionCount)
Sets the maximum number of partitions that this class should return. By default there is no limit to the number of returned partitions.


getMinimumPartitionCount

public int getMinimumPartitionCount()
Returns the minimum number of partitions that this class should return. By default this value is set to 0.


setMinimumPartitionCount

public void setMinimumPartitionCount(int minimumPartitionCount)
Sets the minimum number of partitions that this class should return. By default this value is set to 0.


© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.