Changes in doc/groups.dox [844:c01a98ce01fd:318:1e2d6ca80793] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/groups.dox
r844 r318 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-200 95 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 17 17 */ 18 18 19 namespace lemon {20 21 19 /** 22 20 @defgroup datas Data Structures 23 This group contains the several data structures implemented in LEMON.21 This group describes the several data structures implemented in LEMON. 24 22 */ 25 23 … … 63 61 64 62 /** 65 @defgroup graph_adaptorsAdaptor Classes for Graphs63 @defgroup semi_adaptors Semi-Adaptor Classes for Graphs 66 64 @ingroup graphs 67 \brief Adaptor classes for digraphs and graphs 68 69 This group contains several useful adaptor classes for digraphs and graphs. 70 71 The main parts of LEMON are the different graph structures, generic 72 graph algorithms, graph concepts, which couple them, and graph 73 adaptors. While the previous notions are more or less clear, the 74 latter one needs further explanation. Graph adaptors are graph classes 75 which serve for considering graph structures in different ways. 76 77 A short example makes this much clearer. Suppose that we have an 78 instance \c g of a directed graph type, say ListDigraph and an algorithm 79 \code 80 template <typename Digraph> 81 int algorithm(const Digraph&); 82 \endcode 83 is needed to run on the reverse oriented graph. It may be expensive 84 (in time or in memory usage) to copy \c g with the reversed 85 arcs. In this case, an adaptor class is used, which (according 86 to LEMON \ref concepts::Digraph "digraph concepts") works as a digraph. 87 The adaptor uses the original digraph structure and digraph operations when 88 methods of the reversed oriented graph are called. This means that the adaptor 89 have minor memory usage, and do not perform sophisticated algorithmic 90 actions. The purpose of it is to give a tool for the cases when a 91 graph have to be used in a specific alteration. If this alteration is 92 obtained by a usual construction like filtering the node or the arc set or 93 considering a new orientation, then an adaptor is worthwhile to use. 94 To come back to the reverse oriented graph, in this situation 95 \code 96 template<typename Digraph> class ReverseDigraph; 97 \endcode 98 template class can be used. The code looks as follows 99 \code 100 ListDigraph g; 101 ReverseDigraph<ListDigraph> rg(g); 102 int result = algorithm(rg); 103 \endcode 104 During running the algorithm, the original digraph \c g is untouched. 105 This techniques give rise to an elegant code, and based on stable 106 graph adaptors, complex algorithms can be implemented easily. 107 108 In flow, circulation and matching problems, the residual 109 graph is of particular importance. Combining an adaptor implementing 110 this with shortest path algorithms or minimum mean cycle algorithms, 111 a range of weighted and cardinality optimization algorithms can be 112 obtained. For other examples, the interested user is referred to the 113 detailed documentation of particular adaptors. 114 115 The behavior of graph adaptors can be very different. Some of them keep 116 capabilities of the original graph while in other cases this would be 117 meaningless. This means that the concepts that they meet depend 118 on the graph adaptor, and the wrapped graph. 119 For example, if an arc of a reversed digraph is deleted, this is carried 120 out by deleting the corresponding arc of the original digraph, thus the 121 adaptor modifies the original digraph. 122 However in case of a residual digraph, this operation has no sense. 123 124 Let us stand one more example here to simplify your work. 125 ReverseDigraph has constructor 126 \code 127 ReverseDigraph(Digraph& digraph); 128 \endcode 129 This means that in a situation, when a <tt>const %ListDigraph&</tt> 130 reference to a graph is given, then it have to be instantiated with 131 <tt>Digraph=const %ListDigraph</tt>. 132 \code 133 int algorithm1(const ListDigraph& g) { 134 ReverseDigraph<const ListDigraph> rg(g); 135 return algorithm2(rg); 136 } 137 \endcode 65 \brief Graph types between real graphs and graph adaptors. 66 67 This group describes some graph types between real graphs and graph adaptors. 68 These classes wrap graphs to give new functionality as the adaptors do it. 69 On the other hand they are not light-weight structures as the adaptors. 138 70 */ 139 71 … … 143 75 \brief Map structures implemented in LEMON. 144 76 145 This group contains the map structures implemented in LEMON.77 This group describes the map structures implemented in LEMON. 146 78 147 79 LEMON provides several special purpose maps and map adaptors that e.g. combine … … 156 88 \brief Special graph-related maps. 157 89 158 This group contains maps that are specifically designed to assign 159 values to the nodes and arcs/edges of graphs. 160 161 If you are looking for the standard graph maps (\c NodeMap, \c ArcMap, 162 \c EdgeMap), see the \ref graph_concepts "Graph Structure Concepts". 90 This group describes maps that are specifically designed to assign 91 values to the nodes and arcs of graphs. 163 92 */ 164 93 … … 168 97 \brief Tools to create new maps from existing ones 169 98 170 This group contains map adaptors that are used to create "implicit"99 This group describes map adaptors that are used to create "implicit" 171 100 maps from other maps. 172 101 173 Most of them are \ref concepts::ReadMap "read-only maps".102 Most of them are \ref lemon::concepts::ReadMap "read-only maps". 174 103 They can make arithmetic and logical operations between one or two maps 175 104 (negation, shifting, addition, multiplication, logical 'and', 'or', … … 227 156 228 157 /** 158 @defgroup matrices Matrices 159 @ingroup datas 160 \brief Two dimensional data storages implemented in LEMON. 161 162 This group describes two dimensional data storages implemented in LEMON. 163 */ 164 165 /** 229 166 @defgroup paths Path Structures 230 167 @ingroup datas 231 168 \brief %Path structures implemented in LEMON. 232 169 233 This group contains the path structures implemented in LEMON.170 This group describes the path structures implemented in LEMON. 234 171 235 172 LEMON provides flexible data structures to work with paths. … … 247 184 \brief Auxiliary data structures implemented in LEMON. 248 185 249 This group contains some data structures implemented in LEMON in186 This group describes some data structures implemented in LEMON in 250 187 order to make it easier to implement combinatorial algorithms. 251 188 */ … … 253 190 /** 254 191 @defgroup algs Algorithms 255 \brief This group contains the several algorithms192 \brief This group describes the several algorithms 256 193 implemented in LEMON. 257 194 258 This group contains the several algorithms195 This group describes the several algorithms 259 196 implemented in LEMON. 260 197 */ … … 265 202 \brief Common graph search algorithms. 266 203 267 This group contains the common graph search algorithms, namely268 \e breadth-first \e search (BFS) and \e depth-first \e search (DFS).204 This group describes the common graph search algorithms like 205 Breadth-First Search (BFS) and Depth-First Search (DFS). 269 206 */ 270 207 … … 274 211 \brief Algorithms for finding shortest paths. 275 212 276 This group contains the algorithms for finding shortest paths in digraphs. 277 278 - \ref Dijkstra Dijkstra's algorithm for finding shortest paths from a 279 source node when all arc lengths are non-negative. 280 - \ref Suurballe A successive shortest path algorithm for finding 281 arc-disjoint paths between two nodes having minimum total length. 213 This group describes the algorithms for finding shortest paths in graphs. 282 214 */ 283 215 … … 287 219 \brief Algorithms for finding maximum flows. 288 220 289 This group contains the algorithms for finding maximum flows and221 This group describes the algorithms for finding maximum flows and 290 222 feasible circulations. 291 223 292 The \e maximum \e flow \e problem is to find a flow of maximum value between293 a single source and a single target. Formally, there is a \f$G=(V,A)\f$294 di graph, a \f$cap: A\rightarrow\mathbf{R}^+_0\f$ capacity function and295 \f$s, t \in V\f$ source and target nodes. 296 A maximum flow is an \f$f: A\rightarrow\mathbf{R}^+_0\f$ solution of the 297 following optimization problem. 298 299 \f[ \ max\sum_{sv\in A} f(sv) - \sum_{vs\in A} f(vs) \f]300 \ f[ \sum_{uv\in A} f(uv) = \sum_{vu\in A} f(vu)301 \quad \forall u\in V\setminus\{s,t\}\f]302 \f[ 0 \leq f(uv) \leq cap(uv) \quad \forall uv\in A \f] 303 304 \ref Preflow implements the preflow push-relabel algorithm of Goldberg and 305 Tarjan for solving this problem. It also provides functions to query the 306 minimum cut, which is the dual problem of maximum flow. 307 308 309 \ref Circulation is a preflow push-relabel algorithm implemented directly 310 f or finding feasible circulations, which is a somewhat different problem,311 but it is strongly related to maximum flow. 312 For more information, see \ref Circulation.313 */ 314 315 /** 316 @defgroup min_cost_flow _algsMinimum Cost Flow Algorithms224 The maximum flow problem is to find a flow between a single source and 225 a single target that is maximum. Formally, there is a \f$G=(V,A)\f$ 226 directed graph, an \f$c_a:A\rightarrow\mathbf{R}^+_0\f$ capacity 227 function and given \f$s, t \in V\f$ source and target node. The 228 maximum flow is the \f$f_a\f$ solution of the next optimization problem: 229 230 \f[ 0 \le f_a \le c_a \f] 231 \f[ \sum_{v\in\delta^{-}(u)}f_{vu}=\sum_{v\in\delta^{+}(u)}f_{uv} 232 \qquad \forall u \in V \setminus \{s,t\}\f] 233 \f[ \max \sum_{v\in\delta^{+}(s)}f_{uv} - \sum_{v\in\delta^{-}(s)}f_{vu}\f] 234 235 LEMON contains several algorithms for solving maximum flow problems: 236 - \ref lemon::EdmondsKarp "Edmonds-Karp" 237 - \ref lemon::Preflow "Goldberg's Preflow algorithm" 238 - \ref lemon::DinitzSleatorTarjan "Dinitz's blocking flow algorithm with dynamic trees" 239 - \ref lemon::GoldbergTarjan "Preflow algorithm with dynamic trees" 240 241 In most cases the \ref lemon::Preflow "Preflow" algorithm provides the 242 fastest method to compute the maximum flow. All impelementations 243 provides functions to query the minimum cut, which is the dual linear 244 programming problem of the maximum flow. 245 */ 246 247 /** 248 @defgroup min_cost_flow Minimum Cost Flow Algorithms 317 249 @ingroup algs 318 250 319 251 \brief Algorithms for finding minimum cost flows and circulations. 320 252 321 This group contains the algorithms for finding minimum cost flows and 322 circulations. For more information about this problem and its dual 323 solution see \ref min_cost_flow "Minimum Cost Flow Problem". 324 325 \ref NetworkSimplex is an efficient implementation of the primal Network 326 Simplex algorithm for finding minimum cost flows. It also provides dual 327 solution (node potentials), if an optimal flow is found. 253 This group describes the algorithms for finding minimum cost flows and 254 circulations. 328 255 */ 329 256 … … 334 261 \brief Algorithms for finding minimum cut in graphs. 335 262 336 This group contains the algorithms for finding minimum cut in graphs.337 338 The \e minimum \e cut \eproblem is to find a non-empty and non-complete339 \f$X\f$ subset of the nodes with minimum overall capacity on340 outgoing arcs. Formally, there is a \f$G=(V,A)\f$ digraph, a341 \f$c ap:A\rightarrow\mathbf{R}^+_0\f$ capacity function. The minimum263 This group describes the algorithms for finding minimum cut in graphs. 264 265 The minimum cut problem is to find a non-empty and non-complete 266 \f$X\f$ subset of the vertices with minimum overall capacity on 267 outgoing arcs. Formally, there is \f$G=(V,A)\f$ directed graph, an 268 \f$c_a:A\rightarrow\mathbf{R}^+_0\f$ capacity function. The minimum 342 269 cut is the \f$X\f$ solution of the next optimization problem: 343 270 344 271 \f[ \min_{X \subset V, X\not\in \{\emptyset, V\}} 345 \sum_{uv\in A, u\in X, v\not\in X}cap(uv)\f]272 \sum_{uv\in A, u\in X, v\not\in X}c_{uv}\f] 346 273 347 274 LEMON contains several algorithms related to minimum cut problems: 348 275 349 - \ref HaoOrlin "Hao-Orlin algorithm" for calculating minimum cut 350 in directed graphs. 351 - \ref GomoryHu "Gomory-Hu tree computation" for calculating 352 all-pairs minimum cut in undirected graphs. 276 - \ref lemon::HaoOrlin "Hao-Orlin algorithm" to calculate minimum cut 277 in directed graphs 278 - \ref lemon::NagamochiIbaraki "Nagamochi-Ibaraki algorithm" to 279 calculate minimum cut in undirected graphs 280 - \ref lemon::GomoryHuTree "Gomory-Hu tree computation" to calculate all 281 pairs minimum cut in undirected graphs 353 282 354 283 If you want to find minimum cut just between two distinict nodes, 355 see the \ref max_flow "maximum flow problem".356 */ 357 358 /** 359 @defgroup graph_prop ertiesConnectivity and Other Graph Properties284 please see the \ref max_flow "Maximum Flow page". 285 */ 286 287 /** 288 @defgroup graph_prop Connectivity and Other Graph Properties 360 289 @ingroup algs 361 290 \brief Algorithms for discovering the graph properties 362 291 363 This group contains the algorithms for discovering the graph properties292 This group describes the algorithms for discovering the graph properties 364 293 like connectivity, bipartiteness, euler property, simplicity etc. 365 294 … … 369 298 370 299 /** 300 @defgroup planar Planarity Embedding and Drawing 301 @ingroup algs 302 \brief Algorithms for planarity checking, embedding and drawing 303 304 This group describes the algorithms for planarity checking, 305 embedding and drawing. 306 307 \image html planar.png 308 \image latex planar.eps "Plane graph" width=\textwidth 309 */ 310 311 /** 371 312 @defgroup matching Matching Algorithms 372 313 @ingroup algs 373 314 \brief Algorithms for finding matchings in graphs and bipartite graphs. 374 315 375 This group contains the algorithms for calculating matchings in graphs.376 The general matching problem is finding a subset of the edges for which 377 each node has at most one incident edge.316 This group contains algorithm objects and functions to calculate 317 matchings in graphs and bipartite graphs. The general matching problem is 318 finding a subset of the arcs which does not shares common endpoints. 378 319 379 320 There are several different algorithms for calculate matchings in 380 graphs. The goal of the matching optimization 381 can be finding maximum cardinality, maximum weight or minimum cost 321 graphs. The matching problems in bipartite graphs are generally 322 easier than in general graphs. The goal of the matching optimization 323 can be the finding maximum cardinality, maximum weight or minimum cost 382 324 matching. The search can be constrained to find perfect or 383 325 maximum cardinality matching. 384 326 385 The matching algorithms implemented in LEMON: 386 - \ref MaxMatching Edmond's blossom shrinking algorithm for calculating 387 maximum cardinality matching in general graphs. 388 - \ref MaxWeightedMatching Edmond's blossom shrinking algorithm for calculating 389 maximum weighted matching in general graphs. 390 - \ref MaxWeightedPerfectMatching 391 Edmond's blossom shrinking algorithm for calculating maximum weighted 392 perfect matching in general graphs. 327 LEMON contains the next algorithms: 328 - \ref lemon::MaxBipartiteMatching "MaxBipartiteMatching" Hopcroft-Karp 329 augmenting path algorithm for calculate maximum cardinality matching in 330 bipartite graphs 331 - \ref lemon::PrBipartiteMatching "PrBipartiteMatching" Push-Relabel 332 algorithm for calculate maximum cardinality matching in bipartite graphs 333 - \ref lemon::MaxWeightedBipartiteMatching "MaxWeightedBipartiteMatching" 334 Successive shortest path algorithm for calculate maximum weighted matching 335 and maximum weighted bipartite matching in bipartite graph 336 - \ref lemon::MinCostMaxBipartiteMatching "MinCostMaxBipartiteMatching" 337 Successive shortest path algorithm for calculate minimum cost maximum 338 matching in bipartite graph 339 - \ref lemon::MaxMatching "MaxMatching" Edmond's blossom shrinking algorithm 340 for calculate maximum cardinality matching in general graph 341 - \ref lemon::MaxWeightedMatching "MaxWeightedMatching" Edmond's blossom 342 shrinking algorithm for calculate maximum weighted matching in general 343 graph 344 - \ref lemon::MaxWeightedPerfectMatching "MaxWeightedPerfectMatching" 345 Edmond's blossom shrinking algorithm for calculate maximum weighted 346 perfect matching in general graph 393 347 394 348 \image html bipartite_matching.png … … 399 353 @defgroup spantree Minimum Spanning Tree Algorithms 400 354 @ingroup algs 401 \brief Algorithms for finding minimum cost spanning trees and arborescences.402 403 This group contains the algorithms for findingminimum cost spanning404 tree s and arborescences.355 \brief Algorithms for finding a minimum cost spanning tree in a graph. 356 357 This group describes the algorithms for finding a minimum cost spanning 358 tree in a graph 405 359 */ 406 360 … … 410 364 \brief Auxiliary algorithms implemented in LEMON. 411 365 412 This group contains some algorithms implemented in LEMON366 This group describes some algorithms implemented in LEMON 413 367 in order to make it easier to implement complex algorithms. 414 368 */ 415 369 416 370 /** 371 @defgroup approx Approximation Algorithms 372 @ingroup algs 373 \brief Approximation algorithms. 374 375 This group describes the approximation and heuristic algorithms 376 implemented in LEMON. 377 */ 378 379 /** 417 380 @defgroup gen_opt_group General Optimization Tools 418 \brief This group contains some general optimization frameworks381 \brief This group describes some general optimization frameworks 419 382 implemented in LEMON. 420 383 421 This group contains some general optimization frameworks384 This group describes some general optimization frameworks 422 385 implemented in LEMON. 423 386 */ … … 428 391 \brief Lp and Mip solver interfaces for LEMON. 429 392 430 This group contains Lp and Mip solver interfaces for LEMON. The393 This group describes Lp and Mip solver interfaces for LEMON. The 431 394 various LP solvers could be used in the same manner with this 432 395 interface. 396 */ 397 398 /** 399 @defgroup lp_utils Tools for Lp and Mip Solvers 400 @ingroup lp_group 401 \brief Helper tools to the Lp and Mip solvers. 402 403 This group adds some helper tools to general optimization framework 404 implemented in LEMON. 405 */ 406 407 /** 408 @defgroup metah Metaheuristics 409 @ingroup gen_opt_group 410 \brief Metaheuristics for LEMON library. 411 412 This group describes some metaheuristic optimization tools. 433 413 */ 434 414 … … 445 425 \brief Simple basic graph utilities. 446 426 447 This group contains some simple basic graph utilities.427 This group describes some simple basic graph utilities. 448 428 */ 449 429 … … 453 433 \brief Tools for development, debugging and testing. 454 434 455 This group contains several useful tools for development,435 This group describes several useful tools for development, 456 436 debugging and testing. 457 437 */ … … 462 442 \brief Simple tools for measuring the performance of algorithms. 463 443 464 This group contains simple tools for measuring the performance444 This group describes simple tools for measuring the performance 465 445 of algorithms. 466 446 */ … … 471 451 \brief Exceptions defined in LEMON. 472 452 473 This group contains the exceptions defined in LEMON.453 This group describes the exceptions defined in LEMON. 474 454 */ 475 455 … … 478 458 \brief Graph Input-Output methods 479 459 480 This group contains the tools for importing and exporting graphs460 This group describes the tools for importing and exporting graphs 481 461 and graph related data. Now it supports the \ref lgf-format 482 462 "LEMON Graph Format", the \c DIMACS format and the encapsulated … … 485 465 486 466 /** 487 @defgroup lemon_io LEMON Graph Format467 @defgroup lemon_io LEMON Input-Output 488 468 @ingroup io_group 489 469 \brief Reading and writing LEMON Graph Format. 490 470 491 This group contains methods for reading and writing471 This group describes methods for reading and writing 492 472 \ref lgf-format "LEMON Graph Format". 493 473 */ … … 498 478 \brief General \c EPS drawer and graph exporter 499 479 500 This group contains general \c EPS drawing methods and special480 This group describes general \c EPS drawing methods and special 501 481 graph exporting tools. 502 */503 504 /**505 @defgroup dimacs_group DIMACS format506 @ingroup io_group507 \brief Read and write files in DIMACS format508 509 Tools to read a digraph from or write it to a file in DIMACS format data.510 */511 512 /**513 @defgroup nauty_group NAUTY Format514 @ingroup io_group515 \brief Read \e Nauty format516 517 Tool to read graphs from \e Nauty format data.518 482 */ 519 483 … … 522 486 \brief Skeleton classes and concept checking classes 523 487 524 This group contains the data/algorithm skeletons and concept checking488 This group describes the data/algorithm skeletons and concept checking 525 489 classes implemented in LEMON. 526 490 … … 552 516 \brief Skeleton and concept checking classes for graph structures 553 517 554 This group contains the skeletons and concept checking classes of LEMON's518 This group describes the skeletons and concept checking classes of LEMON's 555 519 graph structures and helper classes used to implement these. 556 520 */ … … 561 525 \brief Skeleton and concept checking classes for maps 562 526 563 This group contains the skeletons and concept checking classes of maps.527 This group describes the skeletons and concept checking classes of maps. 564 528 */ 565 529 … … 567 531 \anchor demoprograms 568 532 569 @defgroup demos Demo Programs533 @defgroup demos Demo programs 570 534 571 535 Some demo programs are listed here. Their full source codes can be found in 572 536 the \c demo subdirectory of the source tree. 573 537 574 I n order to compile them, use the <tt>make demo</tt> or the575 <tt>make check</tt> commands.576 */ 577 578 /** 579 @defgroup tools Standalone Utility Applications538 It order to compile them, use <tt>--enable-demo</tt> configure option when 539 build the library. 540 */ 541 542 /** 543 @defgroup tools Standalone utility applications 580 544 581 545 Some utility applications are listed here. … … 585 549 */ 586 550 587 }
Note: See TracChangeset
for help on using the changeset viewer.