You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
MethodError: no method matching SimpleWeightedGraphs.SimpleWeightedEdge{Int64,Float64}(::Int64, ::Int64)
So far I have worked out, that the problem arises, when the a_star algorithm tries to call the constructor of the SimpleWeightedEdge type in the a_start.jl file.
I would have believed that the definition of
SimpleWeightedEdge(x, y) = SimpleWeightedEdge(x, y, one(Float64))
in line 18 of simpleweightededge.jl would exactly match this case. Am I missing something, or is this a bug?
The text was updated successfully, but these errors were encountered:
The problem is that with E = edgetype(g) in reconstruct_path!, the full type parameters are used, but that's more specific than SimpleWeightedEdge(x, y).
A fix would be to define SimpleWeightedGraphs.SimpleWeightedEdge{T, U}(x::T, y::T) where T<:Integer where U<:Real = SimpleWeightedEdge(x, y, one(U)).
I was trying to calculate the distance between two nodes using the A* algorithm implemented in LightGraphs. For example
throws an error:
So far I have worked out, that the problem arises, when the a_star algorithm tries to call the constructor of the SimpleWeightedEdge type in the a_start.jl file.
I would have believed that the definition of
in line 18 of simpleweightededge.jl would exactly match this case. Am I missing something, or is this a bug?
The text was updated successfully, but these errors were encountered: