Am 02.01.19 um 12:40 schrieb elastica:
> This not the correct distance vector from the 2-indexed node nor the correct
> predecessor vector. And I don't understand why I get an int32 vector since
> the weights have double type.
>
>
> Can somebody please correct my code in order to get the correct distances?
You need to actually pass the weights to the function:
dist = shortest_distance(g, weights=weight, dense=True)
Best,
Tiago
--
Tiago de Paula Peixoto <[email protected]>
_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool