| ... | ... |
@@ -476,17 +476,17 @@ |
| 476 | 476 |
/// the difference. The nodes of the graph can be indexed by position |
| 477 | 477 |
/// with the \c operator()() function. The positions of the nodes can be |
| 478 | 478 |
/// get with \c pos(), \c col() and \c row() members. The outgoing |
| 479 | 479 |
/// arcs can be retrieved with the \c right(), \c up(), \c left() |
| 480 | 480 |
/// and \c down() functions, where the bottom-left corner is the |
| 481 | 481 |
/// origin. |
| 482 | 482 |
/// |
| 483 | 483 |
/// \image html grid_graph.png |
| 484 |
/// \image latex grid_graph.eps "Grid graph" |
|
| 484 |
/// \image latex grid_graph.eps "Grid graph" width=\textwidth |
|
| 485 | 485 |
/// |
| 486 | 486 |
/// A short example about the basic usage: |
| 487 | 487 |
///\code |
| 488 | 488 |
/// GridGraph graph(rows, cols); |
| 489 | 489 |
/// GridGraph::NodeMap<int> val(graph); |
| 490 | 490 |
/// for (int i = 0; i < graph.width(); ++i) {
|
| 491 | 491 |
/// for (int j = 0; j < graph.height(); ++j) {
|
| 492 | 492 |
/// val[graph(i, j)] = i + j; |
0 comments (0 inline)