I have the following code g=load_graph("graph.xml") clust=local_clustering(g)
for i in clust.get_array(): print i This code returns something like 0.0 0.333333 1.5 ....etc What I would like to do is to print the vertex identifier that corresponds to every clustering coefficient. The output to get is something like: edge1 0.0 edge2 0.33333 edge3 1.5 .....etc. I suppose that this is really simple, but I'm newbie at python I do not get how to do it. I appreciate your help and comments. Juan
_______________________________________________ graph-tool mailing list graph-tool@forked.de http://lists.forked.de/mailman/listinfo/graph-tool