On 10/22/2013 03:43 AM, poydflink wrote: > Hi there, when I try to calculate the closeness metric it says it's not in > the module. I have tried to import it and in fact I cannot find it, simply > put. I can correctly calculate all the other centralities. Was it added very > recently maybe, and I don't have the latest version?
Everything seems fine:
from graph_tool.all import *
g = collection.data["power"]
c = closeness(g)
When having problems, please always provide a short example...
Cheers,
Tiago
--
Tiago de Paula Peixoto <[email protected]>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] http://lists.skewed.de/mailman/listinfo/graph-tool
