... | ... |
@@ -472,25 +472,25 @@ |
472 | 472 |
/// graph can be indexed by two integer \c (i,j) value where \c i is |
473 | 473 |
/// in the \c [0..width()-1] range and j is in the \c |
474 | 474 |
/// [0..height()-1] range. Two nodes are connected in the graph if |
475 | 475 |
/// the indexes differ exactly on one position and exactly one is |
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; |
493 | 493 |
/// } |
494 | 494 |
/// } |
495 | 495 |
///\endcode |
496 | 496 |
/// |
0 comments (0 inline)