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

feat: add method that returns all vertices #167

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dtomasi
Copy link

@dtomasi dtomasi commented Feb 20, 2024

Hi Dominik,

I would like to add a method to Graph and Store interface that returns all the vertices that have been added. I'm using graph to resolve dependencies and have to loop over all the vertices after all the edges have been set without error. So this would safe me from keeping an extra map or slice with vertices in my project. Let me know if you want me to change anything in this implementation.

Best,
Dominik

@dominikbraun
Copy link
Owner

Hi Dominik (nice name!), thanks for you PR! This seems to be a quite sought-after function, I believe #149 also implements this. What's your thoughts on the differences between your two approaches, @jonbrandenburg and @dtomasi?

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 this pull request may close these issues.

2 participants