Extra Code

InfoInfo
Search:    

Extra Code

Compiling GUESS

Newman's fast clustering algorithm

newmanCluster.py

Example usage: 
#get cluster support matrix (dendrogram) using default edge weight field name ("weight"),
#  for all numbers of clusters down to 2
# this is relatively slow, but only needs to be done once
supp=newmanCluster()
#cut that dendrogram at the level that gives us 10 clusters
# this is fast, so you can explore different numbers of clusters quickly
cl=cutree(supp,10)
for z in cl:
  z.color=randomColor() #colour the clusters
This is a Wiki Spot wiki. Wiki Spot is a non-profit organization that helps communities collaborate via wikis.