Skip to content

Commit f3ab9d2

Browse files
committed
explicitly set node id type
1 parent 80ff7f2 commit f3ab9d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/simplification.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function simplify_graph(g::OSMGraph{U, T, W}) where {U, T, W}
8080
relevant_nodes = collect(endpoints(g.graph))
8181
n_relevant = length(relevant_nodes)
8282
nodes = Dict{T,Node{T}}()
83-
graph = DiGraph(n_relevant)
83+
graph = DiGraph{U}(n_relevant)
8484
weights = similar(g.weights, (n_relevant, n_relevant))
8585
node_coordinates = Vector{Vector{W}}(undef, n_relevant)
8686
node_to_index = OrderedDict{T,U}()

0 commit comments

Comments
 (0)