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

Relax undirected edge constructor validation #70

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

Conversation

Ivan-Bastidas
Copy link

Currently, the UndirectedEdge<TVertex> class throws an ArgumentException when the target is not lower than the source when comparing them, this doesn't really fit the definition of "Undirected", if we require this comparison to be true for certain algorithms we should rearrange on creation and allow creation with any ordering of vertices

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.

None yet

1 participant