Skip to content

feat: add method that returns all vertices#167

Open
dtomasi wants to merge 1 commit into
dominikbraun:mainfrom
dtomasi:main
Open

feat: add method that returns all vertices#167
dtomasi wants to merge 1 commit into
dominikbraun:mainfrom
dtomasi:main

Conversation

@dtomasi

@dtomasi dtomasi commented Feb 20, 2024

Copy link
Copy Markdown

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

Signed-off-by: Dominik Tomasi <dominik.tomasi@gmail.com>
@dominikbraun

Copy link
Copy Markdown
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