We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80ff7f2 commit f3ab9d2Copy full SHA for f3ab9d2
src/simplification.jl
@@ -80,7 +80,7 @@ function simplify_graph(g::OSMGraph{U, T, W}) where {U, T, W}
80
relevant_nodes = collect(endpoints(g.graph))
81
n_relevant = length(relevant_nodes)
82
nodes = Dict{T,Node{T}}()
83
- graph = DiGraph(n_relevant)
+ graph = DiGraph{U}(n_relevant)
84
weights = similar(g.weights, (n_relevant, n_relevant))
85
node_coordinates = Vector{Vector{W}}(undef, n_relevant)
86
node_to_index = OrderedDict{T,U}()
0 commit comments