|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.algo.Groups
public class Groups
This class provides methods for automatically partitioning nodes of a graph into groups.
![]() |
![]() |
| Method Summary | |
|---|---|
static int |
biconnectedComponentGrouping(Graph graph,
NodeMap groupIDs)
This method partitions the graph by analysing its biconnected component structure. |
static int |
edgeBetweennessClustering(Graph graph,
NodeMap clusterIDs,
boolean directed,
int minGroupCount,
int maxGroupCount,
DataProvider edgeCosts)
This method partitions the graph into groups using edge betweenness centrality (see Centrality.edgeBetweenness(Graph, EdgeMap, boolean, DataProvider). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int edgeBetweennessClustering(Graph graph,
NodeMap clusterIDs,
boolean directed,
int minGroupCount,
int maxGroupCount,
DataProvider edgeCosts)
Centrality.edgeBetweenness(Graph, EdgeMap, boolean, DataProvider).
In each iteration the edge with the highest betweenness centrality is removed from the graph.
The method stops, if there are no more edges to remove. The clustering with the best quality reached during
the process will be returned.
graph - - the input graph.clusterIDs - - return value. this map holds a cluster ID of integer type for every node.directed - - whether or not to consider the edges of the graph as directed.minGroupCount - - the minimum number of groups to be returned. The smaller this value is chosen themaxGroupCount - - the maximum number of groups to be returned. The smaller this value is chosen the
faster the overall computation time. Note that the upper bound on the number of groups is graph.N().
Note, that the number of returned groups is never less than the number of connected components of the graph.edgeCosts - - when null the edges of the graph are considered to have equal cost. Otherwise
it must provide a non-negative double value (its cost) for every edge.
minGroupCount <= maxGroupCountminGroupCount <= graph.N()maxGroupCount > 0
public static int biconnectedComponentGrouping(Graph graph,
NodeMap groupIDs)
graph - - the input graph.groupIDs - - return value. this map holds a cluster ID of integer type for every node.
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||