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

How about acyclic #5

Open
cdhunt opened this issue Mar 12, 2024 · 1 comment
Open

How about acyclic #5

cdhunt opened this issue Mar 12, 2024 · 1 comment

Comments

@cdhunt
Copy link

cdhunt commented Mar 12, 2024

How would you implement a CheckCycle method with the Graph class. If I understand the code correctly, you are using GraphVertex.value as they key so duplicate values would make it cyclic.

@dfinke
Copy link
Owner

dfinke commented Mar 13, 2024

Off the top of my had, maybe use a [System.Collections.Generic.HashSet] instead of an ordered dictionary

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

2 participants