0
21
0
2
2
2
2
10
10
... | ... |
@@ -77,9 +77,9 @@ |
77 | 77 |
- if \f$cost^\pi(uv)>0\f$, then \f$f(uv)=lower(uv)\f$; |
78 | 78 |
- if \f$lower(uv)<f(uv)<upper(uv)\f$, then \f$cost^\pi(uv)=0\f$; |
79 | 79 |
- if \f$cost^\pi(uv)<0\f$, then \f$f(uv)=upper(uv)\f$. |
80 | 80 |
- For all \f$u\in V\f$ nodes: |
81 |
- \f$\pi(u) |
|
81 |
- \f$\pi(u)\leq 0\f$; |
|
82 | 82 |
- if \f$\sum_{uv\in A} f(uv) - \sum_{vu\in A} f(vu) \neq sup(u)\f$, |
83 | 83 |
then \f$\pi(u)=0\f$. |
84 | 84 |
|
85 | 85 |
Here \f$cost^\pi(uv)\f$ denotes the \e reduced \e cost of the arc |
... | ... |
@@ -144,9 +144,9 @@ |
144 | 144 |
- if \f$cost^\pi(uv)>0\f$, then \f$f(uv)=lower(uv)\f$; |
145 | 145 |
- if \f$lower(uv)<f(uv)<upper(uv)\f$, then \f$cost^\pi(uv)=0\f$; |
146 | 146 |
- if \f$cost^\pi(uv)<0\f$, then \f$f(uv)=upper(uv)\f$. |
147 | 147 |
- For all \f$u\in V\f$ nodes: |
148 |
- \f$\pi(u) |
|
148 |
- \f$\pi(u)\geq 0\f$; |
|
149 | 149 |
- if \f$\sum_{uv\in A} f(uv) - \sum_{vu\in A} f(vu) \neq sup(u)\f$, |
150 | 150 |
then \f$\pi(u)=0\f$. |
151 | 151 |
|
152 | 152 |
*/ |
... | ... |
@@ -298,9 +298,9 @@ |
298 | 298 |
/// \c OperationTraits type. |
299 | 299 |
/// |
300 | 300 |
/// \ref named-templ-param "Named parameter" for setting |
301 | 301 |
/// \c OperationTraits type. |
302 |
/// For more information see \ref BellmanFordDefaultOperationTraits. |
|
302 |
/// For more information, see \ref BellmanFordDefaultOperationTraits. |
|
303 | 303 |
template <class T> |
304 | 304 |
struct SetOperationTraits |
305 | 305 |
: public BellmanFord< Digraph, LengthMap, SetOperationTraitsTraits<T> > { |
306 | 306 |
typedef BellmanFord< Digraph, LengthMap, SetOperationTraitsTraits<T> > |
... | ... |
@@ -716,9 +716,9 @@ |
716 | 716 |
/// shortest path from a root to \c v. It is \c INVALID if \c v |
717 | 717 |
/// is not reached from the root(s) or if \c v is a root. |
718 | 718 |
/// |
719 | 719 |
/// The shortest path tree used here is equal to the shortest path |
720 |
/// tree used in \ref predNode() and \predMap(). |
|
720 |
/// tree used in \ref predNode() and \ref predMap(). |
|
721 | 721 |
/// |
722 | 722 |
/// \pre Either \ref run() or \ref init() must be called before |
723 | 723 |
/// using this function. |
724 | 724 |
Arc predArc(Node v) const { return (*_pred)[v]; } |
... | ... |
@@ -731,9 +731,9 @@ |
731 | 731 |
/// a shortest path from a root to \c v. It is \c INVALID if \c v |
732 | 732 |
/// is not reached from the root(s) or if \c v is a root. |
733 | 733 |
/// |
734 | 734 |
/// The shortest path tree used here is equal to the shortest path |
735 |
/// tree used in \ref predArc() and \predMap(). |
|
735 |
/// tree used in \ref predArc() and \ref predMap(). |
|
736 | 736 |
/// |
737 | 737 |
/// \pre Either \ref run() or \ref init() must be called before |
738 | 738 |
/// using this function. |
739 | 739 |
Node predNode(Node v) const { |
... | ... |
@@ -62,9 +62,9 @@ |
62 | 62 |
///The type of the map that indicates which nodes are processed. |
63 | 63 |
|
64 | 64 |
///The type of the map that indicates which nodes are processed. |
65 | 65 |
///It must conform to the \ref concepts::WriteMap "WriteMap" concept. |
66 |
///By default it is a NullMap. |
|
66 |
///By default, it is a NullMap. |
|
67 | 67 |
typedef NullMap<typename Digraph::Node,bool> ProcessedMap; |
68 | 68 |
///Instantiates a \c ProcessedMap. |
69 | 69 |
|
70 | 70 |
///This function instantiates a \ref ProcessedMap. |
... | ... |
@@ -851,9 +851,9 @@ |
851 | 851 |
///The type of the map that indicates which nodes are processed. |
852 | 852 |
|
853 | 853 |
///The type of the map that indicates which nodes are processed. |
854 | 854 |
///It must conform to the \ref concepts::WriteMap "WriteMap" concept. |
855 |
///By default it is a NullMap. |
|
855 |
///By default, it is a NullMap. |
|
856 | 856 |
typedef NullMap<typename Digraph::Node,bool> ProcessedMap; |
857 | 857 |
///Instantiates a ProcessedMap. |
858 | 858 |
|
859 | 859 |
///This function instantiates a ProcessedMap. |
... | ... |
@@ -305,9 +305,9 @@ |
305 | 305 |
/// type with automatic allocation. |
306 | 306 |
/// The Elevator should have standard constructor interface to be |
307 | 307 |
/// able to automatically created by the algorithm (i.e. the |
308 | 308 |
/// digraph and the maximum level should be passed to it). |
309 |
/// However an external elevator object could also be passed to the |
|
309 |
/// However, an external elevator object could also be passed to the |
|
310 | 310 |
/// algorithm with the \ref elevator(Elevator&) "elevator()" function |
311 | 311 |
/// before calling \ref run() or \ref init(). |
312 | 312 |
/// \sa SetElevator |
313 | 313 |
template <typename T> |
... | ... |
@@ -106,9 +106,9 @@ |
106 | 106 |
|
107 | 107 |
/// Iterator class for the nodes. |
108 | 108 |
|
109 | 109 |
/// This iterator goes through each node of the digraph. |
110 |
/// Its usage is quite simple, for example you can count the number |
|
110 |
/// Its usage is quite simple, for example, you can count the number |
|
111 | 111 |
/// of nodes in a digraph \c g of type \c %Digraph like this: |
112 | 112 |
///\code |
113 | 113 |
/// int count=0; |
114 | 114 |
/// for (Digraph::NodeIt n(g); n!=INVALID; ++n) ++count; |
... | ... |
@@ -195,9 +195,9 @@ |
195 | 195 |
/// Iterator class for the outgoing arcs of a node. |
196 | 196 |
|
197 | 197 |
/// This iterator goes trough the \e outgoing arcs of a certain node |
198 | 198 |
/// of a digraph. |
199 |
/// Its usage is quite simple, for example you can count the number |
|
199 |
/// Its usage is quite simple, for example, you can count the number |
|
200 | 200 |
/// of outgoing arcs of a node \c n |
201 | 201 |
/// in a digraph \c g of type \c %Digraph as follows. |
202 | 202 |
///\code |
203 | 203 |
/// int count=0; |
... | ... |
@@ -240,9 +240,9 @@ |
240 | 240 |
/// Iterator class for the incoming arcs of a node. |
241 | 241 |
|
242 | 242 |
/// This iterator goes trough the \e incoming arcs of a certain node |
243 | 243 |
/// of a digraph. |
244 |
/// Its usage is quite simple, for example you can count the number |
|
244 |
/// Its usage is quite simple, for example, you can count the number |
|
245 | 245 |
/// of incoming arcs of a node \c n |
246 | 246 |
/// in a digraph \c g of type \c %Digraph as follows. |
247 | 247 |
///\code |
248 | 248 |
/// int count=0; |
... | ... |
@@ -284,9 +284,9 @@ |
284 | 284 |
|
285 | 285 |
/// Iterator class for the arcs. |
286 | 286 |
|
287 | 287 |
/// This iterator goes through each arc of the digraph. |
288 |
/// Its usage is quite simple, for example you can count the number |
|
288 |
/// Its usage is quite simple, for example, you can count the number |
|
289 | 289 |
/// of arcs in a digraph \c g of type \c %Digraph as follows: |
290 | 290 |
///\code |
291 | 291 |
/// int count=0; |
292 | 292 |
/// for(Digraph::ArcIt a(g); a!=INVALID; ++a) ++count; |
... | ... |
@@ -139,9 +139,9 @@ |
139 | 139 |
|
140 | 140 |
/// Iterator class for the nodes. |
141 | 141 |
|
142 | 142 |
/// This iterator goes through each node of the graph. |
143 |
/// Its usage is quite simple, for example you can count the number |
|
143 |
/// Its usage is quite simple, for example, you can count the number |
|
144 | 144 |
/// of nodes in a graph \c g of type \c %Graph like this: |
145 | 145 |
///\code |
146 | 146 |
/// int count=0; |
147 | 147 |
/// for (Graph::NodeIt n(g); n!=INVALID; ++n) ++count; |
... | ... |
@@ -227,9 +227,9 @@ |
227 | 227 |
|
228 | 228 |
/// Iterator class for the edges. |
229 | 229 |
|
230 | 230 |
/// This iterator goes through each edge of the graph. |
231 |
/// Its usage is quite simple, for example you can count the number |
|
231 |
/// Its usage is quite simple, for example, you can count the number |
|
232 | 232 |
/// of edges in a graph \c g of type \c %Graph as follows: |
233 | 233 |
///\code |
234 | 234 |
/// int count=0; |
235 | 235 |
/// for(Graph::EdgeIt e(g); e!=INVALID; ++e) ++count; |
... | ... |
@@ -271,9 +271,9 @@ |
271 | 271 |
/// Iterator class for the incident edges of a node. |
272 | 272 |
|
273 | 273 |
/// This iterator goes trough the incident undirected edges |
274 | 274 |
/// of a certain node of a graph. |
275 |
/// Its usage is quite simple, for example you can compute the |
|
275 |
/// Its usage is quite simple, for example, you can compute the |
|
276 | 276 |
/// degree (i.e. the number of incident edges) of a node \c n |
277 | 277 |
/// in a graph \c g of type \c %Graph as follows. |
278 | 278 |
/// |
279 | 279 |
///\code |
... | ... |
@@ -368,9 +368,9 @@ |
368 | 368 |
|
369 | 369 |
/// Iterator class for the arcs. |
370 | 370 |
|
371 | 371 |
/// This iterator goes through each directed arc of the graph. |
372 |
/// Its usage is quite simple, for example you can count the number |
|
372 |
/// Its usage is quite simple, for example, you can count the number |
|
373 | 373 |
/// of arcs in a graph \c g of type \c %Graph as follows: |
374 | 374 |
///\code |
375 | 375 |
/// int count=0; |
376 | 376 |
/// for(Graph::ArcIt a(g); a!=INVALID; ++a) ++count; |
... | ... |
@@ -412,9 +412,9 @@ |
412 | 412 |
/// Iterator class for the outgoing arcs of a node. |
413 | 413 |
|
414 | 414 |
/// This iterator goes trough the \e outgoing directed arcs of a |
415 | 415 |
/// certain node of a graph. |
416 |
/// Its usage is quite simple, for example you can count the number |
|
416 |
/// Its usage is quite simple, for example, you can count the number |
|
417 | 417 |
/// of outgoing arcs of a node \c n |
418 | 418 |
/// in a graph \c g of type \c %Graph as follows. |
419 | 419 |
///\code |
420 | 420 |
/// int count=0; |
... | ... |
@@ -460,9 +460,9 @@ |
460 | 460 |
/// Iterator class for the incoming arcs of a node. |
461 | 461 |
|
462 | 462 |
/// This iterator goes trough the \e incoming directed arcs of a |
463 | 463 |
/// certain node of a graph. |
464 |
/// Its usage is quite simple, for example you can count the number |
|
464 |
/// Its usage is quite simple, for example, you can count the number |
|
465 | 465 |
/// of incoming arcs of a node \c n |
466 | 466 |
/// in a graph \c g of type \c %Graph as follows. |
467 | 467 |
///\code |
468 | 468 |
/// int count=0; |
... | ... |
@@ -586,9 +586,9 @@ |
586 | 586 |
/// \brief The first node of the edge. |
587 | 587 |
/// |
588 | 588 |
/// Returns the first node of the given edge. |
589 | 589 |
/// |
590 |
/// Edges don't have source and target nodes, however methods |
|
590 |
/// Edges don't have source and target nodes, however, methods |
|
591 | 591 |
/// u() and v() are used to query the two end-nodes of an edge. |
592 | 592 |
/// The orientation of an edge that arises this way is called |
593 | 593 |
/// the inherent direction, it is used to define the default |
594 | 594 |
/// direction for the corresponding arcs. |
... | ... |
@@ -599,9 +599,9 @@ |
599 | 599 |
/// \brief The second node of the edge. |
600 | 600 |
/// |
601 | 601 |
/// Returns the second node of the given edge. |
602 | 602 |
/// |
603 |
/// Edges don't have source and target nodes, however methods |
|
603 |
/// Edges don't have source and target nodes, however, methods |
|
604 | 604 |
/// u() and v() are used to query the two end-nodes of an edge. |
605 | 605 |
/// The orientation of an edge that arises this way is called |
606 | 606 |
/// the inherent direction, it is used to define the default |
607 | 607 |
/// direction for the corresponding arcs. |
... | ... |
@@ -211,9 +211,9 @@ |
211 | 211 |
}; |
212 | 212 |
|
213 | 213 |
/// 'Do nothing' version of Counter. |
214 | 214 |
|
215 |
/// This class can be used in the same way as \ref Counter |
|
215 |
/// This class can be used in the same way as \ref Counter, but it |
|
216 | 216 |
/// does not count at all and does not print report on destruction. |
217 | 217 |
/// |
218 | 218 |
/// Replacing a \ref Counter with a \ref NoCounter makes it possible |
219 | 219 |
/// to turn off all counting and reporting (SubCounters should also |
... | ... |
@@ -62,9 +62,9 @@ |
62 | 62 |
///The type of the map that indicates which nodes are processed. |
63 | 63 |
|
64 | 64 |
///The type of the map that indicates which nodes are processed. |
65 | 65 |
///It must conform to the \ref concepts::WriteMap "WriteMap" concept. |
66 |
///By default it is a NullMap. |
|
66 |
///By default, it is a NullMap. |
|
67 | 67 |
typedef NullMap<typename Digraph::Node,bool> ProcessedMap; |
68 | 68 |
///Instantiates a \c ProcessedMap. |
69 | 69 |
|
70 | 70 |
///This function instantiates a \ref ProcessedMap. |
... | ... |
@@ -781,9 +781,9 @@ |
781 | 781 |
///The type of the map that indicates which nodes are processed. |
782 | 782 |
|
783 | 783 |
///The type of the map that indicates which nodes are processed. |
784 | 784 |
///It must conform to the \ref concepts::WriteMap "WriteMap" concept. |
785 |
///By default it is a NullMap. |
|
785 |
///By default, it is a NullMap. |
|
786 | 786 |
typedef NullMap<typename Digraph::Node,bool> ProcessedMap; |
787 | 787 |
///Instantiates a ProcessedMap. |
788 | 788 |
|
789 | 789 |
///This function instantiates a ProcessedMap. |
... | ... |
@@ -131,9 +131,9 @@ |
131 | 131 |
///The type of the map that indicates which nodes are processed. |
132 | 132 |
|
133 | 133 |
///The type of the map that indicates which nodes are processed. |
134 | 134 |
///It must conform to the \ref concepts::WriteMap "WriteMap" concept. |
135 |
///By default it is a NullMap. |
|
135 |
///By default, it is a NullMap. |
|
136 | 136 |
typedef NullMap<typename Digraph::Node,bool> ProcessedMap; |
137 | 137 |
///Instantiates a \c ProcessedMap. |
138 | 138 |
|
139 | 139 |
///This function instantiates a \ref ProcessedMap. |
... | ... |
@@ -425,9 +425,9 @@ |
425 | 425 |
///They should have standard constructor interfaces to be able to |
426 | 426 |
///automatically created by the algorithm (i.e. the digraph should be |
427 | 427 |
///passed to the constructor of the cross reference and the cross |
428 | 428 |
///reference should be passed to the constructor of the heap). |
429 |
///However external heap and cross reference objects could also be |
|
429 |
///However, external heap and cross reference objects could also be |
|
430 | 430 |
///passed to the algorithm using the \ref heap() function before |
431 | 431 |
///calling \ref run(Node) "run()" or \ref init(). |
432 | 432 |
///\sa SetHeap |
433 | 433 |
template <class H, class CR = typename Digraph::template NodeMap<int> > |
... | ... |
@@ -446,9 +446,9 @@ |
446 | 446 |
///\c OperationTraits type |
447 | 447 |
/// |
448 | 448 |
///\ref named-templ-param "Named parameter" for setting |
449 | 449 |
///\c OperationTraits type. |
450 |
/// For more information see \ref DijkstraDefaultOperationTraits. |
|
450 |
/// For more information, see \ref DijkstraDefaultOperationTraits. |
|
451 | 451 |
template <class T> |
452 | 452 |
struct SetOperationTraits |
453 | 453 |
: public Dijkstra<Digraph, LengthMap, SetOperationTraitsTraits<T> > { |
454 | 454 |
typedef Dijkstra<Digraph, LengthMap, SetOperationTraitsTraits<T> > |
... | ... |
@@ -995,9 +995,9 @@ |
995 | 995 |
///The type of the map that indicates which nodes are processed. |
996 | 996 |
|
997 | 997 |
///The type of the map that indicates which nodes are processed. |
998 | 998 |
///It must conform to the \ref concepts::WriteMap "WriteMap" concept. |
999 |
///By default it is a NullMap. |
|
999 |
///By default, it is a NullMap. |
|
1000 | 1000 |
typedef NullMap<typename Digraph::Node,bool> ProcessedMap; |
1001 | 1001 |
///Instantiates a ProcessedMap. |
1002 | 1002 |
|
1003 | 1003 |
///This function instantiates a ProcessedMap. |
... | ... |
@@ -293,13 +293,11 @@ |
293 | 293 |
/// \return The value of the minimum cut between \c s and \c t. |
294 | 294 |
/// |
295 | 295 |
/// \pre \ref run() must be called before using this function. |
296 | 296 |
template <typename CutMap> |
297 |
Value minCutMap(const Node& s, |
|
297 |
Value minCutMap(const Node& s, |
|
298 | 298 |
const Node& t, |
299 |
///< |
|
300 | 299 |
CutMap& cutMap |
301 |
///< |
|
302 | 300 |
) const { |
303 | 301 |
Node sn = s, tn = t; |
304 | 302 |
bool s_root=false; |
305 | 303 |
Node rn = INVALID; |
... | ... |
@@ -393,9 +391,9 @@ |
393 | 391 |
/// \code |
394 | 392 |
/// MinCutNodeIt(gomory, t, s, false); |
395 | 393 |
/// \endcode |
396 | 394 |
/// does not necessarily give the same set of nodes. |
397 |
/// However it is ensured that |
|
395 |
/// However, it is ensured that |
|
398 | 396 |
/// \code |
399 | 397 |
/// MinCutNodeIt(gomory, s, t, true); |
400 | 398 |
/// \endcode |
401 | 399 |
/// and |
... | ... |
@@ -141,9 +141,9 @@ |
141 | 141 |
|
142 | 142 |
///Constructor |
143 | 143 |
///\param gr Reference to the graph to be printed. |
144 | 144 |
///\param ost Reference to the output stream. |
145 |
///By default it is <tt>std::cout</tt>. |
|
145 |
///By default, it is <tt>std::cout</tt>. |
|
146 | 146 |
///\param pros If it is \c true, then the \c ostream referenced by \c os |
147 | 147 |
///will be explicitly deallocated by the destructor. |
148 | 148 |
DefaultGraphToEpsTraits(const GR &gr, std::ostream& ost = std::cout, |
149 | 149 |
bool pros = false) : |
... | ... |
@@ -511,9 +511,9 @@ |
511 | 511 |
} |
512 | 512 |
|
513 | 513 |
///Turn on/off pre-scaling |
514 | 514 |
|
515 |
///By default graphToEps() rescales the whole image in order to avoid |
|
515 |
///By default, graphToEps() rescales the whole image in order to avoid |
|
516 | 516 |
///very big or very small bounding boxes. |
517 | 517 |
/// |
518 | 518 |
///This (p)rescaling can be turned off with this function. |
519 | 519 |
/// |
... | ... |
@@ -1113,9 +1113,9 @@ |
1113 | 1113 |
///\ingroup eps_io |
1114 | 1114 |
///Generates an EPS file from a graph. |
1115 | 1115 |
///\param g Reference to the graph to be printed. |
1116 | 1116 |
///\param os Reference to the output stream. |
1117 |
///By default it is <tt>std::cout</tt>. |
|
1117 |
///By default, it is <tt>std::cout</tt>. |
|
1118 | 1118 |
/// |
1119 | 1119 |
///This function also has a lot of |
1120 | 1120 |
///\ref named-templ-func-param "named parameters", |
1121 | 1121 |
///they are declared as the members of class \ref GraphToEps. The following |
... | ... |
@@ -1125,9 +1125,9 @@ |
1125 | 1125 |
/// .nodeScale(2).nodeSizes(sizes) |
1126 | 1126 |
/// .arcWidthScale(.4).run(); |
1127 | 1127 |
///\endcode |
1128 | 1128 |
/// |
1129 |
///For more detailed examples see the \ref graph_to_eps_demo.cc demo file. |
|
1129 |
///For more detailed examples, see the \ref graph_to_eps_demo.cc demo file. |
|
1130 | 1130 |
/// |
1131 | 1131 |
///\warning Don't forget to put the \ref GraphToEps::run() "run()" |
1132 | 1132 |
///to the end of the parameter list. |
1133 | 1133 |
///\sa GraphToEps |
... | ... |
@@ -286,9 +286,9 @@ |
286 | 286 |
/// graph are indexed with integers having at most \c dim binary digits. |
287 | 287 |
/// Two nodes are connected in the graph if and only if their indices |
288 | 288 |
/// differ only on one position in the binary form. |
289 | 289 |
/// This class is completely static and it needs constant memory space. |
290 |
/// Thus you can neither add nor delete nodes or edges, however |
|
290 |
/// Thus you can neither add nor delete nodes or edges, however, |
|
291 | 291 |
/// the structure can be resized using resize(). |
292 | 292 |
/// |
293 | 293 |
/// This type fully conforms to the \ref concepts::Graph "Graph concept". |
294 | 294 |
/// Most of its member functions and nested classes are documented |
... | ... |
@@ -426,9 +426,9 @@ |
426 | 426 |
/// attribute("caption", caption). |
427 | 427 |
/// run(); |
428 | 428 |
///\endcode |
429 | 429 |
/// |
430 |
/// By default the reader uses the first section in the file of the |
|
430 |
/// By default, the reader uses the first section in the file of the |
|
431 | 431 |
/// proper type. If a section has an optional name, then it can be |
432 | 432 |
/// selected for reading by giving an optional name parameter to the |
433 | 433 |
/// \c nodes(), \c arcs() or \c attributes() functions. |
434 | 434 |
/// |
... | ... |
@@ -2220,9 +2220,9 @@ |
2220 | 2220 |
/// will be given to the functor object. However, the empty lines |
2221 | 2221 |
/// and the comment lines are filtered out, and the leading |
2222 | 2222 |
/// whitespaces are trimmed from each processed string. |
2223 | 2223 |
/// |
2224 |
/// For example let's see a section, which contain several |
|
2224 |
/// For example, let's see a section, which contain several |
|
2225 | 2225 |
/// integers, which should be inserted into a vector. |
2226 | 2226 |
///\code |
2227 | 2227 |
/// @numbers |
2228 | 2228 |
/// 12 45 23 |
... | ... |
@@ -390,9 +390,9 @@ |
390 | 390 |
|
391 | 391 |
/// This function changes the target node of the given arc \c a to \c n. |
392 | 392 |
/// |
393 | 393 |
///\note \c ArcIt and \c OutArcIt iterators referencing the changed |
394 |
///arc remain valid, |
|
394 |
///arc remain valid, but \c InArcIt iterators are invalidated. |
|
395 | 395 |
/// |
396 | 396 |
///\warning This functionality cannot be used together with the Snapshot |
397 | 397 |
///feature. |
398 | 398 |
void changeTarget(Arc a, Node n) { |
... | ... |
@@ -402,9 +402,9 @@ |
402 | 402 |
|
403 | 403 |
/// This function changes the source node of the given arc \c a to \c n. |
404 | 404 |
/// |
405 | 405 |
///\note \c InArcIt iterators referencing the changed arc remain |
406 |
///valid, |
|
406 |
///valid, but \c ArcIt and \c OutArcIt iterators are invalidated. |
|
407 | 407 |
/// |
408 | 408 |
///\warning This functionality cannot be used together with the Snapshot |
409 | 409 |
///feature. |
410 | 410 |
void changeSource(Arc a, Node n) { |
... | ... |
@@ -548,9 +548,9 @@ |
548 | 548 |
/// |
549 | 549 |
/// \warning Node and arc deletions and other modifications (e.g. |
550 | 550 |
/// reversing, contracting, splitting arcs or nodes) cannot be |
551 | 551 |
/// restored. These events invalidate the snapshot. |
552 |
/// However the arcs and nodes that were added to the digraph after |
|
552 |
/// However, the arcs and nodes that were added to the digraph after |
|
553 | 553 |
/// making the current snapshot can be removed without invalidating it. |
554 | 554 |
class Snapshot { |
555 | 555 |
protected: |
556 | 556 |
|
... | ... |
@@ -1266,9 +1266,9 @@ |
1266 | 1266 |
/// |
1267 | 1267 |
/// This function changes the second node of the given edge \c e to \c n. |
1268 | 1268 |
/// |
1269 | 1269 |
///\note \c EdgeIt iterators referencing the changed edge remain |
1270 |
///valid, |
|
1270 |
///valid, but \c ArcIt iterators referencing the changed edge and |
|
1271 | 1271 |
///all other iterators whose base node is the changed node are also |
1272 | 1272 |
///invalidated. |
1273 | 1273 |
/// |
1274 | 1274 |
///\warning This functionality cannot be used together with the |
... | ... |
@@ -1350,9 +1350,9 @@ |
1350 | 1350 |
/// |
1351 | 1351 |
/// \warning Node and edge deletions and other modifications |
1352 | 1352 |
/// (e.g. changing the end-nodes of edges or contracting nodes) |
1353 | 1353 |
/// cannot be restored. These events invalidate the snapshot. |
1354 |
/// However the edges and nodes that were added to the graph after |
|
1354 |
/// However, the edges and nodes that were added to the graph after |
|
1355 | 1355 |
/// making the current snapshot can be removed without invalidating it. |
1356 | 1356 |
class Snapshot { |
1357 | 1357 |
protected: |
1358 | 1358 |
... | ... |
@@ -145,9 +145,9 @@ |
145 | 145 |
}; |
146 | 146 |
|
147 | 147 |
///Iterator for iterate over the columns of an LP problem |
148 | 148 |
|
149 |
/// Its usage is quite simple, for example you can count the number |
|
149 |
/// Its usage is quite simple, for example, you can count the number |
|
150 | 150 |
/// of columns in an LP \c lp: |
151 | 151 |
///\code |
152 | 152 |
/// int count=0; |
153 | 153 |
/// for (LpBase::ColIt c(lp); c!=INVALID; ++c) ++count; |
... | ... |
@@ -240,9 +240,9 @@ |
240 | 240 |
}; |
241 | 241 |
|
242 | 242 |
///Iterator for iterate over the rows of an LP problem |
243 | 243 |
|
244 |
/// Its usage is quite simple, for example you can count the number |
|
244 |
/// Its usage is quite simple, for example, you can count the number |
|
245 | 245 |
/// of rows in an LP \c lp: |
246 | 246 |
///\code |
247 | 247 |
/// int count=0; |
248 | 248 |
/// for (LpBase::RowIt c(lp); c!=INVALID; ++c) ++count; |
... | ... |
@@ -229,12 +229,12 @@ |
229 | 229 |
/// <tt>[0..size-1]</tt>. |
230 | 230 |
/// |
231 | 231 |
/// This map is essentially a wrapper for \c std::vector. It assigns |
232 | 232 |
/// values to integer keys from the range <tt>[0..size-1]</tt>. |
233 |
/// It can be used with some data structures, for example |
|
234 |
/// \c UnionFind, \c BinHeap, when the used items are small |
|
233 |
/// It can be used together with some data structures, e.g. |
|
234 |
/// heap types and \c UnionFind, when the used items are small |
|
235 | 235 |
/// integers. This map conforms to the \ref concepts::ReferenceMap |
236 |
/// "ReferenceMap" concept. |
|
236 |
/// "ReferenceMap" concept. |
|
237 | 237 |
/// |
238 | 238 |
/// The simplest way of using this map is through the rangeMap() |
239 | 239 |
/// function. |
240 | 240 |
template <typename V> |
... | ... |
@@ -347,11 +347,11 @@ |
347 | 347 |
/// the keys and different values should be assigned only to a few |
348 | 348 |
/// keys (i.e. the map is "sparse"). |
349 | 349 |
/// The name of this type also refers to this important usage. |
350 | 350 |
/// |
351 |
/// Apart form that this map can be used in many other cases since it |
|
351 |
/// Apart form that, this map can be used in many other cases since it |
|
352 | 352 |
/// is based on \c std::map, which is a general associative container. |
353 |
/// However keep in mind that it is usually not as efficient as other |
|
353 |
/// However, keep in mind that it is usually not as efficient as other |
|
354 | 354 |
/// maps. |
355 | 355 |
/// |
356 | 356 |
/// The simplest way of using this map is through the sparseMap() |
357 | 357 |
/// function. |
... | ... |
@@ -1784,9 +1784,9 @@ |
1784 | 1784 |
/// This function just returns a \c LoggerBoolMap class. |
1785 | 1785 |
/// |
1786 | 1786 |
/// The most important usage of it is storing certain nodes or arcs |
1787 | 1787 |
/// that were marked \c true by an algorithm. |
1788 |
/// For example it makes easier to store the nodes in the processing |
|
1788 |
/// For example, it makes easier to store the nodes in the processing |
|
1789 | 1789 |
/// order of Dfs algorithm, as the following examples show. |
1790 | 1790 |
/// \code |
1791 | 1791 |
/// std::vector<Node> v; |
1792 | 1792 |
/// dfs(g).processedMap(loggerBoolMap(std::back_inserter(v))).run(s); |
... | ... |
@@ -1799,9 +1799,9 @@ |
1799 | 1799 |
/// \note The container of the iterator must contain enough space |
1800 | 1800 |
/// for the elements or the iterator should be an inserter iterator. |
1801 | 1801 |
/// |
1802 | 1802 |
/// \note LoggerBoolMap is just \ref concepts::WriteMap "writable", so |
1803 |
/// it cannot be used when a readable map is needed, for example as |
|
1803 |
/// it cannot be used when a readable map is needed, for example, as |
|
1804 | 1804 |
/// \c ReachedMap for \c Bfs, \c Dfs and \c Dijkstra algorithms. |
1805 | 1805 |
/// |
1806 | 1806 |
/// \relates LoggerBoolMap |
1807 | 1807 |
template<typename Iterator> |
... | ... |
@@ -1921,9 +1921,9 @@ |
1921 | 1921 |
/// different (the map is actually invertable) or there are only a few |
1922 | 1922 |
/// items with the same value. |
1923 | 1923 |
/// Otherwise consider to use \c IterableValueMap, which is more |
1924 | 1924 |
/// suitable and more efficient for such cases. It provides iterators |
1925 |
/// to traverse the items with the same associated value, |
|
1925 |
/// to traverse the items with the same associated value, but |
|
1926 | 1926 |
/// it does not have \c InverseMap. |
1927 | 1927 |
/// |
1928 | 1928 |
/// This type is not reference map, so it cannot be modified with |
1929 | 1929 |
/// the subscript operator. |
... | ... |
@@ -3465,9 +3465,9 @@ |
3465 | 3465 |
/// |
3466 | 3466 |
/// \warning Besides \c addNode() and \c addArc(), a digraph structure |
3467 | 3467 |
/// may provide alternative ways to modify the digraph. |
3468 | 3468 |
/// The correct behavior of InDegMap is not guarantied if these additional |
3469 |
/// features are used. For example the functions |
|
3469 |
/// features are used. For example, the functions |
|
3470 | 3470 |
/// \ref ListDigraph::changeSource() "changeSource()", |
3471 | 3471 |
/// \ref ListDigraph::changeTarget() "changeTarget()" and |
3472 | 3472 |
/// \ref ListDigraph::reverseArc() "reverseArc()" |
3473 | 3473 |
/// of \ref ListDigraph will \e not update the degree values correctly. |
... | ... |
@@ -3595,9 +3595,9 @@ |
3595 | 3595 |
/// |
3596 | 3596 |
/// \warning Besides \c addNode() and \c addArc(), a digraph structure |
3597 | 3597 |
/// may provide alternative ways to modify the digraph. |
3598 | 3598 |
/// The correct behavior of OutDegMap is not guarantied if these additional |
3599 |
/// features are used. For example the functions |
|
3599 |
/// features are used. For example, the functions |
|
3600 | 3600 |
/// \ref ListDigraph::changeSource() "changeSource()", |
3601 | 3601 |
/// \ref ListDigraph::changeTarget() "changeTarget()" and |
3602 | 3602 |
/// \ref ListDigraph::reverseArc() "reverseArc()" |
3603 | 3603 |
/// of \ref ListDigraph will \e not update the degree values correctly. |
... | ... |
@@ -47,27 +47,27 @@ |
47 | 47 |
/// |
48 | 48 |
/// In general this class is the fastest implementation available |
49 | 49 |
/// in LEMON for the minimum cost flow problem. |
50 | 50 |
/// Moreover it supports both directions of the supply/demand inequality |
51 |
/// constraints. For more information see \ref SupplyType. |
|
51 |
/// constraints. For more information, see \ref SupplyType. |
|
52 | 52 |
/// |
53 | 53 |
/// Most of the parameters of the problem (except for the digraph) |
54 | 54 |
/// can be given using separate functions, and the algorithm can be |
55 | 55 |
/// executed using the \ref run() function. If some parameters are not |
56 | 56 |
/// specified, then default values will be used. |
57 | 57 |
/// |
58 | 58 |
/// \tparam GR The digraph type the algorithm runs on. |
59 | 59 |
/// \tparam V The value type used for flow amounts, capacity bounds |
60 |
/// and supply values in the algorithm. By default it is \c int. |
|
60 |
/// and supply values in the algorithm. By default, it is \c int. |
|
61 | 61 |
/// \tparam C The value type used for costs and potentials in the |
62 |
/// algorithm. By default it is the same as \c V. |
|
62 |
/// algorithm. By default, it is the same as \c V. |
|
63 | 63 |
/// |
64 | 64 |
/// \warning Both value types must be signed and all input data must |
65 | 65 |
/// be integer. |
66 | 66 |
/// |
67 | 67 |
/// \note %NetworkSimplex provides five different pivot rule |
68 | 68 |
/// implementations, from which the most efficient one is used |
69 |
/// by default. For more information see \ref PivotRule. |
|
69 |
/// by default. For more information, see \ref PivotRule. |
|
70 | 70 |
template <typename GR, typename V = int, typename C = V> |
71 | 71 |
class NetworkSimplex |
72 | 72 |
{ |
73 | 73 |
public: |
... | ... |
@@ -121,37 +121,37 @@ |
121 | 121 |
/// |
122 | 122 |
/// \ref NetworkSimplex provides five different pivot rule |
123 | 123 |
/// implementations that significantly affect the running time |
124 | 124 |
/// of the algorithm. |
125 |
/// By default \ref BLOCK_SEARCH "Block Search" is used, which |
|
125 |
/// By default, \ref BLOCK_SEARCH "Block Search" is used, which |
|
126 | 126 |
/// proved to be the most efficient and the most robust on various |
127 | 127 |
/// test inputs according to our benchmark tests. |
128 |
/// However another pivot rule can be selected using the \ref run() |
|
128 |
/// However, another pivot rule can be selected using the \ref run() |
|
129 | 129 |
/// function with the proper parameter. |
130 | 130 |
enum PivotRule { |
131 | 131 |
|
132 |
/// The First Eligible pivot rule. |
|
132 |
/// The \e First \e Eligible pivot rule. |
|
133 | 133 |
/// The next eligible arc is selected in a wraparound fashion |
134 | 134 |
/// in every iteration. |
135 | 135 |
FIRST_ELIGIBLE, |
136 | 136 |
|
137 |
/// The Best Eligible pivot rule. |
|
137 |
/// The \e Best \e Eligible pivot rule. |
|
138 | 138 |
/// The best eligible arc is selected in every iteration. |
139 | 139 |
BEST_ELIGIBLE, |
140 | 140 |
|
141 |
/// The Block Search pivot rule. |
|
141 |
/// The \e Block \e Search pivot rule. |
|
142 | 142 |
/// A specified number of arcs are examined in every iteration |
143 | 143 |
/// in a wraparound fashion and the best eligible arc is selected |
144 | 144 |
/// from this block. |
145 | 145 |
BLOCK_SEARCH, |
146 | 146 |
|
147 |
/// The Candidate List pivot rule. |
|
147 |
/// The \e Candidate \e List pivot rule. |
|
148 | 148 |
/// In a major iteration a candidate list is built from eligible arcs |
149 | 149 |
/// in a wraparound fashion and in the following minor iterations |
150 | 150 |
/// the best eligible arc is selected from this list. |
151 | 151 |
CANDIDATE_LIST, |
152 | 152 |
|
153 |
/// The Altering Candidate List pivot rule. |
|
153 |
/// The \e Altering \e Candidate \e List pivot rule. |
|
154 | 154 |
/// It is a modified version of the Candidate List method. |
155 | 155 |
/// It keeps only the several best eligible arcs from the former |
156 | 156 |
/// candidate list and extends this list in every iteration. |
157 | 157 |
ALTERING_LIST |
... | ... |
@@ -809,9 +809,9 @@ |
809 | 809 |
/// This function sets the type of the supply/demand constraints. |
810 | 810 |
/// If it is not used before calling \ref run(), the \ref GEQ supply |
811 | 811 |
/// type will be used. |
812 | 812 |
/// |
813 |
/// For more information see \ref SupplyType. |
|
813 |
/// For more information, see \ref SupplyType. |
|
814 | 814 |
/// |
815 | 815 |
/// \return <tt>(*this)</tt> |
816 | 816 |
NetworkSimplex& supplyType(SupplyType supply_type) { |
817 | 817 |
_stype = supply_type; |
... | ... |
@@ -841,13 +841,13 @@ |
841 | 841 |
/// This function can be called more than once. All the parameters |
842 | 842 |
/// that have been given are kept for the next call, unless |
843 | 843 |
/// \ref reset() is called, thus only the modified parameters |
844 | 844 |
/// have to be set again. See \ref reset() for examples. |
845 |
/// However the underlying digraph must not be modified after this |
|
845 |
/// However, the underlying digraph must not be modified after this |
|
846 | 846 |
/// class have been constructed, since it copies and extends the graph. |
847 | 847 |
/// |
848 | 848 |
/// \param pivot_rule The pivot rule that will be used during the |
849 |
/// algorithm. For more information see \ref PivotRule. |
|
849 |
/// algorithm. For more information, see \ref PivotRule. |
|
850 | 850 |
/// |
851 | 851 |
/// \return \c INFEASIBLE if no feasible flow exists, |
852 | 852 |
/// \n \c OPTIMAL if the problem has optimal solution |
853 | 853 |
/// (i.e. it is feasible and bounded), and the algorithm has found |
... | ... |
@@ -870,9 +870,9 @@ |
870 | 870 |
/// |
871 | 871 |
/// It is useful for multiple run() calls. If this function is not |
872 | 872 |
/// used, all the parameters given before are kept for the next |
873 | 873 |
/// \ref run() call. |
874 |
/// However the underlying digraph must not be modified after this |
|
874 |
/// However, the underlying digraph must not be modified after this |
|
875 | 875 |
/// class have been constructed, since it copies and extends the graph. |
876 | 876 |
/// |
877 | 877 |
/// For example, |
878 | 878 |
/// \code |
... | ... |
@@ -263,9 +263,9 @@ |
263 | 263 |
/// type with automatic allocation. |
264 | 264 |
/// The Elevator should have standard constructor interface to be |
265 | 265 |
/// able to automatically created by the algorithm (i.e. the |
266 | 266 |
/// digraph and the maximum level should be passed to it). |
267 |
/// However an external elevator object could also be passed to the |
|
267 |
/// However, an external elevator object could also be passed to the |
|
268 | 268 |
/// algorithm with the \ref elevator(Elevator&) "elevator()" function |
269 | 269 |
/// before calling \ref run() or \ref init(). |
270 | 270 |
/// \sa SetElevator |
271 | 271 |
template <typename T> |
... | ... |
@@ -374,9 +374,9 @@ |
374 | 374 |
///Returns the running state of the timer |
375 | 375 |
|
376 | 376 |
///This function returns the number of stop() exections that is |
377 | 377 |
///necessary to really stop the timer. |
378 |
///For example the timer |
|
378 |
///For example, the timer |
|
379 | 379 |
///is running if and only if the return value is \c true |
380 | 380 |
///(i.e. greater than |
381 | 381 |
///zero). |
382 | 382 |
int running() { return _running; } |
... | ... |
@@ -42,9 +42,9 @@ |
42 | 42 |
/// The union operation uses rank heuristic, while |
43 | 43 |
/// the find operation uses path compression. |
44 | 44 |
/// This is a very simple but efficient implementation, providing |
45 | 45 |
/// only four methods: join (union), find, insert and size. |
46 |
/// For more features see the \ref UnionFindEnum class. |
|
46 |
/// For more features, see the \ref UnionFindEnum class. |
|
47 | 47 |
/// |
48 | 48 |
/// It is primarily used in Kruskal algorithm for finding minimal |
49 | 49 |
/// cost spanning tree in a graph. |
50 | 50 |
/// \sa kruskal() |
0 comments (0 inline)