JuliaGraphs / LightGraphsFlows.jl

Flow algorithms on LightGraphs
Other
36 stars 11 forks source link

Clean up `multiroute_flow` to correct type instability #53

Open gdalle opened 3 years ago

gdalle commented 3 years ago

Judging by an old comment https://github.com/JuliaGraphs/LightGraphsFlows.jl/blob/40cdca3a3cd6b7c21dd5077306b8d4201ffb172d/src/multiroute_flow.jl#L97 it seems the return type of multiroute_flow depends upon its arguments. Maybe there is a way to do this using multiple dispatch instead?