Skip to content

Commit 057d7ed

Browse files
committed
formatter
1 parent 2dac438 commit 057d7ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/shortestpaths/bellman-ford.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ a vector representing the path from vertex `v` to vertex `d`.
118118
function 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)
122122
end
123123
enumerate_paths(state::AbstractPathState, v::Integer) = enumerate_paths(state, v:v)[1]
124124
function enumerate_paths(state::AbstractPathState)
@@ -137,8 +137,8 @@ as the same memory can be used for each iteration.
137137
"""
138138
function 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

0 commit comments

Comments
 (0)