QuikGraph icon indicating copy to clipboard operation
QuikGraph copied to clipboard

Modify YenShortestPathsAlgorithm to support generic Edge type

Open SkylineThomasCR opened this issue 4 months ago • 0 comments

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.

SkylineThomasCR avatar Mar 08 '24 11:03 SkylineThomasCR