igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] community_fastgreedy algorithm in Python


From: Tamas Nepusz
Subject: Re: [igraph] community_fastgreedy algorithm in Python
Date: Sun, 22 Mar 2009 21:43:23 +0000

Hi,

A short question considering the community_fastgreedy algorithm implementation in Python: why does it return a VertextClustering object?
The documentation is wrong here (thanks for pointing that out). The object that you get is in fact a VertexDendrogram:

In [1]: g=Graph.GRG(100, 0.2)
In [2]: cl=g.community_fastgreedy()
In [3]: cl.__class__
Out[3]: <class 'igraph.clustering.VertexDendrogram'>

You can even plot the dendrogram if you're lucky and it's not too large:

In [4]: plot(cl)

--
T.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]