igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] as_clustering() error


From: Tamas Nepusz
Subject: Re: [igraph] as_clustering() error
Date: Fri, 7 Nov 2014 11:47:27 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

> I added the code to the VertexDendrogram Object.
The code in fix_dendrogram.py is a separate function, no need to add it to the
VertexDendrogram object.

> What would be the code examples that I'd use this function?
> Right now I have:
> import igraph
> g = igraph.read('/home/xiao/Desktop/tag.NET',format="pajek")
> dendrogram = g.community_edge_betweenness()

> What's next to prevent as_clustering freaks out?
fix_dendrogram(g, dendrogram)
cl = dendrogram.as_clustering()

This should do the trick.

-- 
T.



reply via email to

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