Skip to content

Commit ddccb15

Browse files
committed
[doxy] fixing doxygen errors
1 parent 1904951 commit ddccb15

18 files changed

+73
-113
lines changed

doxygen/Doxyfile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2249,7 +2249,7 @@ DIAFILE_DIRS =
22492249
# Minimum value: 0, maximum value: 10000, default value: 50.
22502250
# This tag requires that the tag HAVE_DOT is set to YES.
22512251

2252-
DOT_GRAPH_MAX_NODES = 60
2252+
DOT_GRAPH_MAX_NODES = 100
22532253

22542254
# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
22552255
# generated by dot. A depth value of 3 means that only nodes reachable from the

doxygen/contraction.dox

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ output: G'(V',E'), removed_vertices
8181
The contracted graph will be represented with two parameters, the modified Graph, and the removed_vertices set.
8282

8383
~~~~{.c}
84-
removed_vertices = {(v,1):{2}, (e,-1):{3}}.
84+
removed = {E{1}, V{2, 3}}.
8585
~~~~
8686

8787

8888
The above notation indicates:
89-
- Vertex 2 is removed, and belongs to vertex 1 subgraph
90-
- Vertex 3 is removed, and belongs to edge -1 subgraph
89+
- Edge 2 is removed
90+
- Vertex 2, and 3 are removed
9191

9292

9393

@@ -153,15 +153,9 @@ G = {E:{1(1, 2)}, V:{1, 2} }
153153

154154
Visually the graph is
155155

156-
157-
@todo (Rohith) practice a little graphviz :)
158-
159-
@image html twoNodesoneEdge_a.png
160-
161156
@dot
162157
digraph G {
163158
1 -> 2 [label="id = 1"];
164-
2 [color = lightblue,style=filled];
165159
}
166160

167161
@enddot
@@ -171,7 +165,7 @@ Initial set up:
171165
----------------
172166

173167
~~~~{.c}
174-
removed_vertices={}
168+
removed={}
175169
V1 = {2}
176170
V2 = {}
177171
~~~~
@@ -199,12 +193,16 @@ Results:
199193
~~~~{.c}
200194

201195
G = {V:{1}, E:{}}
202-
removed_vertices = {(v, 1):{2}}
203-
~~~~{.c}
196+
removed = {E{1}, V{2}}
197+
~~~~
204198

205199
Visually the graph is
206200

207-
@image html ../doc/images/twoNodesoneEdge_b.png
201+
@dot
202+
digraph G {
203+
1 -> 2 [label="id = 1, has={2}"];
204+
}
205+
@enddot
208206

209207

210208
@subsection contraction_examples_linear Linear Contraction
@@ -220,12 +218,17 @@ Visually the graph is
220218
1. Input: G = {V:{1, 2, 3}, E:{(1, 2), (2, 3)}}
221219

222220
Visually the graph is
223-
@image html ../doc/images/threeNodestwoEdges_a.png
221+
@dot
222+
digraph G {
223+
1 -> 2 [label="id = 1"];
224+
2 -> 3 [label="id = 2"];
225+
}
226+
@enddot
224227

225228

226229
2. initial set up
227230
~~~~{.c}
228-
removed_vertices={}
231+
removed={}
229232
V1 = {3}
230233
V2 = {2}
231234
~~~~
@@ -234,24 +237,28 @@ V2 = {2}
234237
~~~~{.c}
235238
V2 = {2} is not empty
236239

237-
V1 = {3}
238-
removed_vertices = {(e, -1):{2}}
240+
removed = {E{1}, V{2}}
241+
add = {E{-1(1,3)}, V{}}
239242
V2 = {}
240-
G = {V:{1, 3}, E:{-1(1,3,c=2)}}
243+
G = {E:{-1(1,3,c=2)}, V{1,3}}
241244

242245
V2 is empty
243246
~~~~
244247

245248
Visually the graph is
246-
@image html threeNodestwoEdges_b.png
249+
@dot
250+
digraph G {
251+
1 -> 3 [label="id = -1, cost = 2, has={2}"];
252+
}
253+
@enddot
247254

248255
4. Since V2 is empty we go on to the next contraction operation
249256
~~~~{.c}
250257
V1 = {3} is not empty
251258

252259
V1 = {}
253260
V2 = {}
254-
removed_vertices = {(v, 1):{3, 2}}.
261+
removed = {E{-1}, V{3}}.
255262
G = {V:{1}, E:{}}
256263

257264
V1 is empty
@@ -260,12 +267,15 @@ V1 is empty
260267

261268
5. Results
262269
~~~~{.c}
263-
removed_vertices = {(v, 1):{3, 2}}.
264270
G = {V:{1}, E:{}}
265271
~~~~
266272

267273
Visually the graph is
268-
@image html threeNodestwoEdges_c.png
274+
@dot
275+
digraph G {
276+
1 [label="1, has={2, 3}"];
277+
}
278+
@enddot
269279

270280

271281

include/c_common/combinations_input.h

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,10 @@ typedef struct II_t_rt II_t_rt;
3636
SELECT source, target
3737
FROM combinations_table;
3838
~~~~
39-
40-
41-
@param[in] combinations_sql
42-
@param[out] combinations
43-
@param[out] combinations_edges
4439
*/
4540
void pgr_get_combinations(
46-
char *combinations_sql,
47-
II_t_rt **combinations,
48-
size_t *total_combinations);
41+
char *,
42+
II_t_rt **,
43+
size_t *);
4944

5045
#endif // INCLUDE_C_COMMON_COMBINATIONS_INPUT_H_

include/circuits/hawickcircuits.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
4242
#include "cpp_common/pgr_assert.h"
4343
#include "c_types/circuits_rt.h"
4444

45-
/** @file hawickcirucits.hpp
45+
/**
4646
* @brief The main file which calls the respective boost function.
4747
*
4848
* Contains actual implementation of the function and the calling
@@ -57,9 +57,8 @@ class circuit_detector{
5757
public:
5858
/** @brief circuit detector to get the results
5959
*
60-
*
61-
* @param graph the graph containing the edges
62-
* @param result container for storing the result
60+
* @param graph the graph containing the edges
61+
* @param data container for storing the result
6362
*
6463
*/
6564
circuit_detector(

include/contraction/pgr_contractionGraph.hpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,16 @@ class Pgr_contractionGraph : public Pgr_base_graph<G, CH_vertex, CH_edge> {
154154

155155
/*! @brief add_shortuct to the graph during contraction
156156
157-
u -> v -> w
158-
159-
u -> w
160-
161-
edge (u, w) is a new edge e
162-
e.contracted_vertices = v + v.contracted vertices
157+
@param [in] edge of type *CH_edge* is to be added
158+
@param [in] u vertex
159+
@param [in] v vertex
163160
164-
removed from graph edges: u -> v and v -> w
161+
u -> w -> v
165162
163+
u -> v
166164
167-
@param [in] edge of type *CH_edge* is to be added
165+
edge (u, v) is a new edge e
166+
contracted_vertices = w + contracted vertices
168167
*/
169168

170169
void add_shortcut(const CH_edge &edge, V u, V v) {

include/cpp_common/identifiers.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,6 @@ class Identifiers {
248248
os << "}";
249249
return os;
250250
}
251-
252-
/// @}
253251
};
254252

255253
#endif // INCLUDE_CPP_COMMON_IDENTIFIERS_HPP_

include/traversal/pgr_depthFirstSearch.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ class Pgr_depthFirstSearch {
116116
* @param root the root vertex
117117
* @param visited_order vector which will contain the edges of the resulting traversal
118118
* @param directed whether the graph is directed or undirected
119+
* @param max_depth Upper limit for depth to be returned
119120
*
120121
* @returns bool @b true, when results are found
121122
*/

include/vrp/fleet.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,8 @@ class Fleet {
8989
Identifiers<size_t> m_used;
9090
Identifiers<size_t> m_un_used;
9191

92-
/*! @brief build the fleet
93-
*
94-
* @param[in] vehicles of type Vehicle_t
95-
*/
96-
bool build_fleet(
97-
std::vector<Vehicle_t> vehicles,
98-
double factor);
92+
/*! @brief build the fleet */
93+
bool build_fleet(std::vector<Vehicle_t>, double);
9994

10095
void add_vehicle(
10196
Vehicle_t,

include/vrp/pgr_pickDeliver.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ class Pgr_pickDeliver : public PD_problem {
9797

9898
/** message controller for all classes */
9999
Pgr_messages msg;
100-
/** @} */
101100

102101

103102
private:

include/vrp/tw_node.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Tw_node : public Dnode {
6767

6868

6969
/** @name accessors */
70-
///@ {
70+
///@{
7171

7272
/*! @brief Returns the opening time.*/
7373
inline int64_t order() const {return m_order;}
@@ -105,7 +105,7 @@ class Tw_node : public Dnode {
105105
* - the demand are valid for the requested type
106106
*/
107107

108-
///@ {
108+
///@{
109109

110110

111111
/*! @brief is_start
@@ -187,7 +187,7 @@ class Tw_node : public Dnode {
187187

188188

189189
/** @name document functions */
190-
///@ {
190+
///@{
191191
/*!
192192
* The actual arrival time at @b This node, given that:
193193
* @b this node is visited directly after @b other node

include/vrp/vehicle.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class Vehicle : public Identifier {
125125
void invariant() const;
126126

127127

128-
/// @ {
128+
/// @{
129129

130130
/*! @brief Insert @b node at @b pos position.
131131
*
@@ -270,7 +270,7 @@ class Vehicle : public Identifier {
270270
*
271271
*/
272272

273-
///@ {
273+
///@{
274274

275275
/*! @brief Evaluate: Evaluate the whole path from the start. */
276276
void evaluate();
@@ -288,14 +288,14 @@ class Vehicle : public Identifier {
288288

289289

290290
/*! @name accessors */
291-
///@ {
291+
///@{
292292

293293
std::deque< Vehicle_node > path() const;
294294

295295
///@}
296296

297297
/*! @name operators */
298-
///@ {
298+
///@{
299299

300300

301301
friend std::ostream& operator << (std::ostream &log, const Vehicle &v);

include/vrp/vehicle_node.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ namespace vrp {
4848
class Vehicle_node: public Tw_node {
4949
public:
5050
/** @name log */
51-
///@ {
51+
///@{
5252

5353
friend std::ostream& operator<<(
5454
std::ostream &log, const Vehicle_node &node);
5555

5656
///@}
5757

5858
/** @name Node evaluation accessors */
59-
///@ {
59+
///@{
6060

6161
/*! \brief Truck's travel_time from previous node to this node. */
6262
inline double travel_time() const {return m_travel_time;}
@@ -81,7 +81,7 @@ class Vehicle_node: public Tw_node {
8181

8282

8383
/** @name Accumulated evaluation accessors */
84-
///@ {
84+
///@{
8585

8686
/*! \brief Truck's total times it has violated time windows. */
8787
inline int twvTot() const {return m_twvTot;}
@@ -108,7 +108,7 @@ class Vehicle_node: public Tw_node {
108108

109109

110110
/** @name State */
111-
///@ {
111+
///@{
112112

113113
/*! \brief True when the total count for violations are 0 */
114114
bool feasible() const {return m_twvTot == 0 && m_cvTot == 0;}
@@ -134,7 +134,7 @@ class Vehicle_node: public Tw_node {
134134
///@}
135135

136136
/** @name mutators */
137-
///@ {
137+
///@{
138138
/*! @todo TODO evaluate with matrix also*/
139139
void evaluate(double cargoLimit);
140140
void evaluate(const Vehicle_node &pred, double cargoLimit, double speed);
@@ -150,7 +150,7 @@ class Vehicle_node: public Tw_node {
150150

151151
private:
152152
/** @name Node evaluation members */
153-
///@ {
153+
///@{
154154

155155
double m_travel_time; ///< Travel time from last node
156156
double m_arrival_time; ///< Arrival time at this node
@@ -161,7 +161,7 @@ class Vehicle_node: public Tw_node {
161161
///@}
162162

163163
/** @name Accumulated evaluation members */
164-
///@ {
164+
///@{
165165

166166
double m_cargo; ///< Accumulated cargo
167167
int m_twvTot; ///< Total count of TWV

0 commit comments

Comments
 (0)