Am 03.06.20 um 10:26 schrieb Mathias Versichele:
> Anyone that can help me out ? There must be something I'm missing, or there
> must be an easy fix. Any help would be greatly appreciated.

This is a numerical precision problem. You have very low edge weights
(1e-6) combined with very large values (1000000), which cause
differences to be lost to finite precision. If you replace all values
1000000 (which I assume mean infinite weight) by numpy.inf, you actually
get a more stable calculation, and no missing nodes in your example.

An even better alternative is to actually remove the "infinite weight"
edges using an edge filter.

Best,
Tiago

Ps. I note you are using Python 2, but current versions of graph-tool
only support Python 3.

-- 
Tiago de Paula Peixoto <ti...@skewed.de>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
graph-tool mailing list
graph-tool@skewed.de
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to