That’s probably because you’ve locally defined a vector called weights that is overriding the function LightGraphs.weights.
1 Like
That’s probably because you’ve locally defined a vector called weights that is overriding the function LightGraphs.weights.