File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ a vector representing the path from vertex `v` to vertex `d`.
118118function enumerate_paths (state:: AbstractPathState , vs:: AbstractVector{<:Integer} )
119119 T = eltype (state. parents)
120120 all_paths = Vector{T}[Vector {eltype(state.parents)} () for _ in 1 : length (vs)]
121- enumerate_paths! (all_paths, state, vs)
121+ return enumerate_paths! (all_paths, state, vs)
122122end
123123enumerate_paths (state:: AbstractPathState , v:: Integer ) = enumerate_paths (state, v: v)[1 ]
124124function enumerate_paths (state:: AbstractPathState )
@@ -137,8 +137,8 @@ as the same memory can be used for each iteration.
137137"""
138138function enumerate_paths! (
139139 all_paths:: AbstractVector{<:AbstractVector} ,
140- state:: AbstractPathState ,
141- vs:: AbstractVector{<:Integer}
140+ state:: AbstractPathState ,
141+ vs:: AbstractVector{<:Integer} ,
142142)
143143 Base. require_one_based_indexing (all_paths)
144144 Base. require_one_based_indexing (vs)
@@ -161,4 +161,4 @@ function enumerate_paths!(
161161 end
162162 end
163163 return all_paths
164- end
164+ end
You can’t perform that action at this time.
0 commit comments