QuikGraph
QuikGraph copied to clipboard
Modify YenShortestPathsAlgorithm to support generic Edge type
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.