Repository navigation
Fix TSP weight parameter issues - #7721
Conversation
Schefflera-Arboricola
left a comment
There was a problem hiding this comment.
Thank you @mjschwenne :)
I think the purpose of the test added here might be more clear if instead of having the "distance" attribute we don't have any attribute. But, I think it's fine this way also. Thanks!
|
When the provided attribute isn't on the edges, the algorithms will assume an edge weight of 1 for all the edges (which is what it's already doing for the 'unweighted' edges in the complete graphs). If we didn't put non-one edge weights on each graph, passing in a different value for the |
dschult
left a comment
There was a problem hiding this comment.
Looks good!
Thanks @dt99jay for reporting it! And @mjschwenne for the quick fix!
Fixes #7720. See that issue for a description of the issue and solution.