2 Jan
2019
2 Jan
'19
1:56 p.m.
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 <tiago@skewed.de>