Integrating igraph_get_k_shortest_paths with python-igraph#577
Integrating igraph_get_k_shortest_paths with python-igraph#577ntamas merged 20 commits intoigraph:masterfrom
Conversation
|
There you go! Let's see if it passes CI. Il give you a few suggestions after that, but it generally looks pretty good 😊 |
|
I did some last update for correct typing should be a bit better. |
|
We're getting there. Two suggestions:
|
Correcting call to get_k_shortest_paths
|
We should set up AddressSanitizer runs for py-igraph so it's easier to track down these crashes. |
|
Shall I split the test to better identify the error ? |
|
I think the reason for the CI failures is the call to |
No more use of igraph_vs_destroy since to is not a vector
|
Sorry, I did not mean to mark it as ready for review without your approval, I just accidentally clicked on it. |
|
Now this seems interesting:
|
|
Ok, no more segfault, just a test that does not work. I will investigate but it seems curious. |
Ok, do you need anything from me now? |
|
I will take a look at this issue to see if it's reproducible in the C core (without going through Python), and then report back here. |
|
It may be a good test in the C core to compare this function with |
This is in fact set up already. In fact I contributed to setting it up, but I forgot ... |
|
The bug that triggered the |
|
Getting close now! :) A few minor comments from my end:
Let me know if you don't have time to fix these in the next few days; I'm aiming for a new release early next week and it would be nice to get this into the next release, so if you are busy with other things, I will take care of it on my own. |
Changing order of arg of get_k_shortest_path(v,to,k,weights,mode,output)
…h_get_k_shortest_paths
|
I changed the order ofthe arg, set K by default to 1 and added the output arg |
|
Made a few changes here and there; I'll merge this tomorrow if the CI tests pass. |
|
Thanks a lot for your contribution! |
Hello,
This merge request aims to render available within python-igraph the C function igraph_get_k_shortest_paths with python-igraph.