[BUG] yen_k_shortest_paths
doesn't work with Unitful (i.e., Number
) weights
#321
Labels
bug
Something isn't working
Description of bug
Passing an array of
Unitful.jl
doesn't work withyen_k_shortest_paths
.It's because no method is defined to accept weights of
AbstractMatrix{<:Number}
,since now only
AbstractMatrix{<:Real}
is accepted.How to reproduce
Expected behavior
Unitful.jl should work.
Actual behavior
Throws a Method not found error.
Version information
Solution
I guess we could just substitute all
<:Real
to<:Number
.Any obvious problems if we do so and is there a reason it's a
Real
in the first place ?The text was updated successfully, but these errors were encountered: