igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Weighted beweenness centrality in igraph


From: Tamas Nepusz
Subject: Re: [igraph] Weighted beweenness centrality in igraph
Date: Mon, 1 Sep 2008 12:18:28 +0100

Hi,

Thanks for your reply. Does igraph compute node/edge betweenness with
parallel edges?
Yes, igraph is happy with that. E.g. (in Python):

>>> g=Graph([(0,1),(0,2),(1,3),(2,3)])
>>> g.betweenness()
[0.5, 0.5, 0.5, 0.5]
>>> g.add_edges([(0,1), (0,1)])
<igraph.Graph object at 0x471718>
>>> g.betweenness()
>>> [0.75, 0.75, 0.25, 0.25]

--
T.





reply via email to

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