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

@labels macro #60

Open
bramtayl opened this issue May 4, 2023 · 1 comment
Open

@labels macro #60

bramtayl opened this issue May 4, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@bramtayl
Copy link
Collaborator

bramtayl commented May 4, 2023

Here's one option for making working with labels easier:

Right now we have for example Graphs.outneighbors(meta_graph::MetaGraph, code::Integer) and outneighbor_labels(meta_graph::MetaGraph, label).

Maybe we could have a general pattern where we add a _labels suffix to a Graphs function to make it work with labels instead of code?

We could then have a @labels macro that attaches the _label suffix to all surface-level Graphs function calls?

@gdalle
Copy link
Member

gdalle commented May 4, 2023

Not bad!
Related: #59

@gdalle gdalle added the enhancement New feature or request label Jul 2, 2023
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

2 participants