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

add get_edges_between(from, to) method to Graph object #33

Open
davewhiteland opened this issue Apr 28, 2020 · 0 comments
Open

add get_edges_between(from, to) method to Graph object #33

davewhiteland opened this issue Apr 28, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@davewhiteland
Copy link
Collaborator

Currently there's no built-in way to find all the edges between to vertices and it feels like the Graph ought to be able to do that. (It would handle the wrinkle of bi-directional edges too).

Maybe get_edges_between(from_vertex, to_vertex) returns an array of edges (possibly empty) but...

get_edge_between(from_vertex, to_vertex [,chooser]) returns just one (possibly null) — in graphs where there are no duplicate edges, having to handle the array will be an annoyance. There's already a chooser defined in the GraphVertex.get_edge_to(to_vertex, chooser) method.

@davewhiteland davewhiteland added the enhancement New feature or request label Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant