Skip to content

Commit

Permalink
:octocat: Applied clang-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
pratzl authored and github-actions[bot] committed Sep 12, 2024
1 parent 4f4a148 commit 3d572ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions include/graph/algorithm/bellman_ford_shortest_paths.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ requires is_arithmetic_v<range_value_t<Distances>> && //
Compare&& compare = less<range_value_t<Distances>>(),
Combine&& combine = plus<range_value_t<Distances>>()) {
return bellman_ford_shortest_paths(g, subrange(&source, (&source + 1)), distances, predecessor, weight,
forward<Visitor>(visitor), forward<Compare>(compare),
forward<Combine>(combine));
forward<Visitor>(visitor), forward<Compare>(compare), forward<Combine>(combine));
}


Expand Down Expand Up @@ -288,8 +287,7 @@ requires convertible_to<range_value_t<Sources>, vertex_id_t<G>> && //
Compare&& compare = less<range_value_t<Distances>>(),
Combine&& combine = plus<range_value_t<Distances>>()) {
return bellman_ford_shortest_paths(g, sources, distances, _null_predecessors, forward<WF>(weight),
forward<Visitor>(visitor), forward<Compare>(compare),
forward<Combine>(combine));
forward<Visitor>(visitor), forward<Compare>(compare), forward<Combine>(combine));
}

template <index_adjacency_list G,
Expand Down
2 changes: 1 addition & 1 deletion tests/dijkstra_shortest_paths_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ auto to_string(const Predecessors& predecessors) {
return pred;
}

template<typename G>
template <typename G>
using visited_vertex_t = vertex_descriptor<vertex_id_t<G>, vertex_reference_t<G>, void>;
template <typename G>
using visited_edge_t = edge_descriptor<vertex_id_t<G>, true, edge_reference_t<G>, void>;
Expand Down

0 comments on commit 3d572ef

Please sign in to comment.