igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Python Interface to igraph


From: Gabor Csardi
Subject: Re: [igraph] Python Interface to igraph
Date: Fri, 8 Feb 2008 18:36:41 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Hmmm, according to
http://cneurocvs.rmki.kfki.hu/igraph/doc/python/igraph.Graph-class.html#clusters
it returns an object with class VertexClustering.

G.

On Fri, Feb 08, 2008 at 06:28:20PM +0100, Lorenzo Isella wrote:
[...]
> clustering=g.clusters()
> print "clustering is, ", clustering
> nc=len(clustering)
> 
> print "nc is, ", nc
> 
> 
> cluster_sizes=clustering.sizes()
> 
> print "cluster_sizes are, ", cluster_sizes
> 
> Shouldn't g.clusters() return the membership of each node to a
> cluster? Am I doing anything wrong? On my machine, g.clusters()
> returns what looks like a memory address.
> Cheers
> 
> Lorenzo
> 
[...]

-- 
Csardi Gabor <address@hidden>    UNIL DGM




reply via email to

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