-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyDiGraph: get ingoing edge indices of a node #1360
Comments
I assume we could use a |
Hi... looks like this issue is free for grabs. May I take this up? Edit: Just a bit confused about the proposed |
I will post a comment with the details later but yes this issue is available as a good first issue |
Great, I'll take on the issue! |
Hi, Add the new function in, https://github.com/Qiskit/rustworkx/blob/main/src/digraph.rs |
Yes, the places you outlined are correct! Sorry I haven’t had time to update the details yet but what inferred from Contributing.md should be enough to get you started. I will try to add the details when I can and/or review your PR if you finish before I update |
No worries! I've created a draft PR, Please review it at your convenience and let me know your thoughts. I'm not entirely sure about the function signature as well. I'll add documentation once everything is finalized, thanks ! |
After revising all of our APIs, the method should be An optional improvement is adding |
Hi, I added the requested changes in #1369 . I kept the tests for the undirected graph consistent with the other tests in the file. Let me know if those need the same improvement u suggested for tests in directed graph. ( I assumed the variables for edge indices were used to make the edge and directions clear in the test functions ). Thanks ! |
What is the expected enhancement?
Similar to incident_edges() which can return the IDs of edges going out OR going in and out of a node in a directed graph, i would like to have a function to obtain the IDs of just the ingoing edges of a node. There is in_edges(), but this only returns tuples of (head_node, tail_node, data), so i would need to call another function to get the ID of each edge.
The text was updated successfully, but these errors were encountered: