wodka.util.cluster
Class Clusterizer

java.lang.Object
  extended bywodka.util.cluster.Clusterizer

public class Clusterizer
extends java.lang.Object

Finds clusters in a model. Removes all except the biggest cluster. A cluster is a set of masses that are connected by springs or muscles.


Method Summary
 java.util.Collection clusterize(java.util.Collection nodes)
          Returns a collection of collections each representing a cluster.
static Clusterizer current()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

current

public static Clusterizer current()

clusterize

public java.util.Collection clusterize(java.util.Collection nodes)
Returns a collection of collections each representing a cluster. The collections contain the nodes that belong to a cluster.