Skip to content

Commit fc696bb

Browse files
authored
Merge pull request #694 from Becheler/doc/rcsp-edge-index-map-deprecation
doc: clarify r_c_shortest_paths edge_index_map deprecation
2 parents bbff6fc + a58580f commit fc696bb

2 files changed

Lines changed: 18 additions & 23 deletions

File tree

‎doc/modules/ROOT/pages/algorithms/shortest_paths/r_c_shortest_paths.adoc‎

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void r_c_shortest_paths(
4545
Visitor vis)
4646
----
4747

48-
Old interface, to be deprecated in future releases.
48+
Deprecated. The `edge_index_map` argument is ignored. This overload will be removed in Boost 1.95.
4949

5050
[source,cpp]
5151
----
@@ -90,8 +90,7 @@ void r_c_shortest_paths(
9090

9191
| IN
9292
| `const EdgeIndexMap& edge_index_map`
93-
| A link:../../property_map/doc/ReadablePropertyMap.html[ReadablePropertyMap]
94-
mapping edge descriptors to integers in [0, `num_edges(g)`).
93+
| Ignored. Only accepted by the deprecated overloads, which will be removed in Boost 1.95.
9594

9695
| IN
9796
| `vertex_descriptor s`
@@ -175,7 +174,7 @@ void r_c_shortest_paths(
175174
Visitor vis)
176175
----
177176

178-
Old interface, to be deprecated in future releases.
177+
Deprecated. The `edge_index_map` argument is ignored. This overload will be removed in Boost 1.95.
179178

180179
[source,cpp]
181180
----
@@ -220,8 +219,7 @@ void r_c_shortest_paths(
220219

221220
| IN
222221
| `const EdgeIndexMap& edge_index_map`
223-
| A link:../../property_map/doc/ReadablePropertyMap.html[ReadablePropertyMap]
224-
mapping edge descriptors to integers in [0, `num_edges(g)`).
222+
| Ignored. Only accepted by the deprecated overloads, which will be removed in Boost 1.95.
225223

226224
| IN
227225
| `vertex_descriptor s`
@@ -300,7 +298,7 @@ void r_c_shortest_paths(
300298
const DominanceFunction& dominance)
301299
----
302300

303-
Old interface, to be deprecated in future releases.
301+
Deprecated. The `edge_index_map` argument is ignored. This overload will be removed in Boost 1.95.
304302

305303
[source,cpp]
306304
----
@@ -341,8 +339,7 @@ void r_c_shortest_paths(
341339

342340
| IN
343341
| `const EdgeIndexMap& edge_index_map`
344-
| A link:../../property_map/doc/ReadablePropertyMap.html[ReadablePropertyMap]
345-
mapping edge descriptors to integers in [0, `num_edges(g)`).
342+
| Ignored. Only accepted by the deprecated overloads, which will be removed in Boost 1.95.
346343

347344
| IN
348345
| `vertex_descriptor s`
@@ -389,14 +386,12 @@ void r_c_shortest_paths(
389386
----
390387
template <class Graph,
391388
class VertexIndexMap,
392-
class EdgeIndexMap,
393389
class ResourceContainer,
394390
class ResourceExtensionFunction,
395391
class DominanceFunction>
396392
void r_c_shortest_paths(
397393
const Graph& g,
398394
const VertexIndexMap& vertex_index_map,
399-
const EdgeIndexMap& edge_index_map,
400395
typename graph_traits<Graph>::vertex_descriptor s,
401396
typename graph_traits<Graph>::vertex_descriptor t,
402397
std::vector<typename graph_traits<Graph>::edge_descriptor>& pareto_optimal_solution,
@@ -406,18 +401,20 @@ void r_c_shortest_paths(
406401
const DominanceFunction& dominance)
407402
----
408403

409-
Old interface, to be deprecated in future releases.
404+
Deprecated. The `edge_index_map` argument is ignored. This overload will be removed in Boost 1.95.
410405

411406
[source,cpp]
412407
----
413408
template <class Graph,
414409
class VertexIndexMap,
410+
class EdgeIndexMap,
415411
class ResourceContainer,
416412
class ResourceExtensionFunction,
417413
class DominanceFunction>
418414
void r_c_shortest_paths(
419415
const Graph& g,
420416
const VertexIndexMap& vertex_index_map,
417+
const EdgeIndexMap& edge_index_map,
421418
typename graph_traits<Graph>::vertex_descriptor s,
422419
typename graph_traits<Graph>::vertex_descriptor t,
423420
std::vector<typename graph_traits<Graph>::edge_descriptor>& pareto_optimal_solution,
@@ -445,8 +442,7 @@ void r_c_shortest_paths(
445442

446443
| IN
447444
| `const EdgeIndexMap& edge_index_map`
448-
| A link:../../property_map/doc/ReadablePropertyMap.html[ReadablePropertyMap]
449-
mapping edge descriptors to integers in [0, `num_edges(g)`).
445+
| Ignored. Only accepted by the deprecated overloads, which will be removed in Boost 1.95.
450446

451447
| IN
452448
| `vertex_descriptor s`
@@ -673,7 +669,6 @@ The functions are an implementation of a priority-queue-based label-setting algo
673669
----
674670
r_c_shortest_paths( g,
675671
vertex_index_map,
676-
edge_index_map,
677672
s,
678673
t,
679674
pareto_optimal_solutions,

‎include/boost/graph/r_c_shortest_paths.hpp‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,8 @@ void r_c_shortest_paths(const Graph& g, const VertexIndexMap& vertex_index_map,
611611
template < class Graph, class VertexIndexMap, class EdgeIndexMap,
612612
class ResourceContainer, class ResourceExtensionFunction,
613613
class DominanceFunction, class LabelAllocator, class Visitor >
614-
BOOST_DEPRECATED("edge_index_map is unused; drop it and call the 5-argument "
615-
"r_c_shortest_paths overload. Removal planned for Boost 1.95.")
614+
BOOST_DEPRECATED("edge_index_map is unused; drop that argument from the "
615+
"r_c_shortest_paths call. Removal planned for Boost 1.95.")
616616
void r_c_shortest_paths(const Graph& g, const VertexIndexMap& vertex_index_map,
617617
const EdgeIndexMap& edge_index_map,
618618
typename graph_traits< Graph >::vertex_descriptor s,
@@ -639,8 +639,8 @@ void r_c_shortest_paths(const Graph& g, const VertexIndexMap& vertex_index_map,
639639
template < class Graph, class VertexIndexMap, class EdgeIndexMap,
640640
class ResourceContainer, class ResourceExtensionFunction,
641641
class DominanceFunction, class LabelAllocator, class Visitor >
642-
BOOST_DEPRECATED("edge_index_map is unused; drop it and call the 5-argument "
643-
"r_c_shortest_paths overload. Removal planned for Boost 1.95.")
642+
BOOST_DEPRECATED("edge_index_map is unused; drop that argument from the "
643+
"r_c_shortest_paths call. Removal planned for Boost 1.95.")
644644
void r_c_shortest_paths(const Graph& g, const VertexIndexMap& vertex_index_map,
645645
const EdgeIndexMap& edge_index_map,
646646
typename graph_traits< Graph >::vertex_descriptor s,
@@ -665,8 +665,8 @@ void r_c_shortest_paths(const Graph& g, const VertexIndexMap& vertex_index_map,
665665
template < class Graph, class VertexIndexMap, class EdgeIndexMap,
666666
class ResourceContainer, class ResourceExtensionFunction,
667667
class DominanceFunction >
668-
BOOST_DEPRECATED("edge_index_map is unused; drop it and call the 5-argument "
669-
"r_c_shortest_paths overload. Removal planned for Boost 1.95.")
668+
BOOST_DEPRECATED("edge_index_map is unused; drop that argument from the "
669+
"r_c_shortest_paths call. Removal planned for Boost 1.95.")
670670
void r_c_shortest_paths(const Graph& g, const VertexIndexMap& vertex_index_map,
671671
const EdgeIndexMap& edge_index_map,
672672
typename graph_traits< Graph >::vertex_descriptor s,
@@ -693,8 +693,8 @@ void r_c_shortest_paths(const Graph& g, const VertexIndexMap& vertex_index_map,
693693
template < class Graph, class VertexIndexMap, class EdgeIndexMap,
694694
class ResourceContainer, class ResourceExtensionFunction,
695695
class DominanceFunction >
696-
BOOST_DEPRECATED("edge_index_map is unused; drop it and call the 5-argument "
697-
"r_c_shortest_paths overload. Removal planned for Boost 1.95.")
696+
BOOST_DEPRECATED("edge_index_map is unused; drop that argument from the "
697+
"r_c_shortest_paths call. Removal planned for Boost 1.95.")
698698
void r_c_shortest_paths(const Graph& g, const VertexIndexMap& vertex_index_map,
699699
const EdgeIndexMap& edge_index_map,
700700
typename graph_traits< Graph >::vertex_descriptor s,

0 commit comments

Comments
 (0)