@@ -39,7 +39,7 @@ namespace graph {
3939 *
4040 * @param g The graph.
4141 * @param predecessor The predecessor range.
42- * @param cycle_vertex_id A vertex id in the negative weight cycle. IF no negative weight cycle exists
42+ * @param cycle_vertex_id A vertex id in the negative weight cycle. If no negative weight cycle exists
4343 * then there will be no vertex id defined.
4444 * @param out_cycle The output iterator that the vertex ids in the cycle are output to.
4545 */
@@ -84,9 +84,9 @@ void find_negative_cycle(G& g,
8484 * @tparam Predecessors The predecessor random access range.
8585 * @tparam WF Edge weight function. Defaults to a function that returns 1.
8686 * @tparam Visitor Visitor type with functions called for different events in the algorithm.
87- * Function calls are removed by the optimizer if not uesd .
87+ * Function calls are removed by the optimizer if not used .
8888 * @tparam Compare Comparison function for Distance values. Defaults to less<DistanceValue>.
89- * @tparam Combine Combine function for Distance values. Defaults to plus<DistanctValue >.
89+ * @tparam Combine Combine function for Distance values. Defaults to plus<DistanceValue >.
9090 *
9191 * @return optional<vertex_id_t<G>>, where no vertex id is returned if all edges were minimized.
9292 * If an edge was not minimized, the on_edge_not_minimized event is called and a vertex id
@@ -120,7 +120,7 @@ requires convertible_to<range_value_t<Sources>, vertex_id_t<G>> && //
120120 using weight_type = invoke_result_t <WF, edge_reference_t <G>>;
121121 using return_type = optional<vertex_id_t <G>>;
122122
123- // relxing the target is the function of reducing the distance from the source to the target
123+ // relaxing the target is the function of reducing the distance from the source to the target
124124 auto relax_target = [&g, &predecessor, &distances, &compare, &combine] //
125125 (edge_reference_t <G> e, vertex_id_t <G> uid, const weight_type& w_e) -> bool {
126126 id_type vid = target_id (g, e);
@@ -139,14 +139,14 @@ requires convertible_to<range_value_t<Sources>, vertex_id_t<G>> && //
139139
140140 if (size (distances) < size (vertices (g))) {
141141 throw std::out_of_range (
142- std::format (" bellman_ford_shortest_paths: size of distances is {} is less than the number of vertices {}" ,
142+ std::format (" bellman_ford_shortest_paths: size of distances of {} is less than the number of vertices {}" ,
143143 size (distances), size (vertices (g))));
144144 }
145145
146146 if constexpr (!is_same_v<Predecessors, _null_range_type>) {
147147 if (size (predecessor) < size (vertices (g))) {
148148 throw std::out_of_range (
149- std::format (" bellman_ford_shortest_paths: size of predecessor is {} is less than the number of vertices {}" ,
149+ std::format (" bellman_ford_shortest_paths: size of predecessor of {} is less than the number of vertices {}" ,
150150 size (predecessor), size (vertices (g))));
151151 }
152152 }
@@ -259,9 +259,9 @@ requires is_arithmetic_v<range_value_t<Distances>> && //
259259 * @tparam Distances The distance random access range.
260260 * @tparam WF Edge weight function. Defaults to a function that returns 1.
261261 * @tparam Visitor Visitor type with functions called for different events in the algorithm.
262- * Function calls are removed by the optimizer if not uesd .
262+ * Function calls are removed by the optimizer if not used .
263263 * @tparam Compare Comparison function for Distance values. Defaults to less<DistanceValue>.
264- * @tparam Combine Combine function for Distance values. Defaults to plus<DistanctValue >.
264+ * @tparam Combine Combine function for Distance values. Defaults to plus<DistanceValue >.
265265 *
266266 * @return optional<vertex_id_t<G>>, where no vertex id is returned if all edges were minimized.
267267 * If an edge was not minimized, the on_edge_not_minimized event is called and a vertex id
0 commit comments