Skip to content
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

[joss] How to get edges incident to a vertex? #509

Closed
szhorvat opened this issue Dec 2, 2021 · 1 comment · Fixed by #537
Closed

[joss] How to get edges incident to a vertex? #509

szhorvat opened this issue Dec 2, 2021 · 1 comment · Fixed by #537

Comments

@szhorvat
Copy link

szhorvat commented Dec 2, 2021

I was wondering about how one might implement certain graph algorithms, such as basic graph traversal, or obtaining a cycle basis in terms of edges, perhaps compute the edge-cycle matrix (see #505).

For such operations, it is necessary to be able to access the incident edges of a node (similar to .neighbors() or .adj() but returning edges). How can I do this?

@IvanIsCoding
Copy link
Collaborator

IvanIsCoding commented Dec 17, 2021

For directed graphs, the methods you are looking for are:

To achieve an equivalent behaviour on undirected graphs, the current best way is to:

@mtreinish mtreinish linked a pull request Jan 12, 2022 that will close this issue
4 tasks
@IvanIsCoding IvanIsCoding removed their assignment Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants