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

[Wish] Graph::edge_references_mut #667

Open
Chris00 opened this issue Sep 12, 2024 · 0 comments
Open

[Wish] Graph::edge_references_mut #667

Chris00 opened this issue Sep 12, 2024 · 0 comments

Comments

@Chris00
Copy link

Chris00 commented Sep 12, 2024

Summary

A method edge_references_mut(&mut self) -> EdgeReferencesMut<...> would be nice.

Motivation

For my use case, the edges data are FnMut closures so calling them requires mutable access. When I can, I use edge_weights_mut(&mut self) -> EdgeWeightsMut<'_, E, Ix> but sometimes I need the EdgeRef trait source and target methods.

Details

Unless I am missing something, this should be quite straightforward to implement. I can do a PR if there is interest.

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

No branches or pull requests

1 participant