Closed loreabad6 closed 3 years ago
Yes, this should give an error. The function searches for an edge attribute named 'invented_string' and returns NULL if it cannot find it. That results in forwarding weights = NULL
to the igraph function, which in turn results in using a 'weight' column if present and no weights otherwise.
Instead, we should give an error when it cannot find the requested edge attribute.
Describe the bug When passing a character string in
st_network_paths(weights = 'invented_string')
, the algorithm runs normally assumingNULL
weights.Reproducible example
Expected behavior This should throw an error.