[Top][All Lists]

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

[igraph] Clusters question

From: Ish Rattan
Subject: [igraph] Clusters question
Date: Thu, 5 Apr 2012 14:27:38 -0400 (EDT)

Just starting with igraph with Python interface.
I want to find the strongly connected components of a directed graph.

I tried:

import igraph
g = igraph.Graph.Read_Edgelist("list.txt")
print g.summary()
9 nodes, 11 edges, directed

Number of components: 5
Diameter: 5
Density: 0.1528
Reciprocity: 0.0000
Average path length: 2.4524

print g.clusters("strong")
<igraph.clustering.VertexClustering object at 0x8defc8c>

Now, how do I acces the members of this object: eg, size of components, count of components etc?


reply via email to

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