[Networkit] centrality.ApproxCloseness

Christian Staudt christian.staudt at kit.edu
Wed Sep 9 10:43:23 CEST 2015


Is that supposed to work on disconnected graphs? An example output for

centrality.ApproxCloseness(G, 42).run().scores()

on a disconnected graph looks like this:

[inf,
 inf,
 inf,
 inf,
 inf,
 0.00525,
 inf,
 0.008571428571428572,
 0.07,
 inf,
 0.21,
 inf,
 inf,
 0.006885245901639345,
 0.011052631578947368,
 0.105,
 inf,
 inf,

Maybe that is on purpose. If not it should throw an exception. Could we please clarify this?

Best,
Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ira.uni-karlsruhe.de/mailman/private/networkit/attachments/20150909/df209fa9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.ira.uni-karlsruhe.de/mailman/private/networkit/attachments/20150909/df209fa9/attachment-0001.sig>


More information about the NetworKit mailing list