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

Modify YenShortestPathsAlgorithm to support generic Edge type #84

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

Conversation

SkylineThomasCR
Copy link

YenShortestPathsAlgorithm currently requires Edges to be of type EquatableTaggedEdge<TVertex, double>.
The reason for this seems to be related to how weights were provided in older versions.

This change will allow any type that implements IEdge.
This change does make the edgeWeights parameter mandatory.
This change also requires an additional type parameter to be specified by the user.

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