demo/hello_lemon.cc
changeset 1641 77f6ab7ad66f
parent 1636 260ac104190f
child 1875 98698b69a902
     1.1 --- a/demo/hello_lemon.cc	Wed Aug 17 21:52:50 2005 +0000
     1.2 +++ b/demo/hello_lemon.cc	Wed Aug 17 22:07:35 2005 +0000
     1.3 @@ -21,6 +21,8 @@
     1.4  /// This program is intended to be a "Hello World!" program that shows
     1.5  /// the very basic notions of the LEMON library: \ref graphs "graphs" and
     1.6  /// \ref maps-page "maps". Click on the links to read more about these.
     1.7 +///
     1.8 +/// \include hello_lemon.cc
     1.9  
    1.10  #include <iostream>
    1.11  #include <lemon/list_graph.h>
    1.12 @@ -81,7 +83,8 @@
    1.13    std::cout << "There is a map on the edges (length)!" << std::endl;
    1.14    std::cout <<  std::endl;
    1.15    for (EdgeIt i(g); i!=INVALID; ++i)
    1.16 -    std::cout << "length(" << g.id(g.source(i)) << "," << g.id(g.target(i)) << ")="<<length[i]<<std::endl;
    1.17 +    std::cout << "length(" << g.id(g.source(i)) << ","
    1.18 +	      << g.id(g.target(i)) << ")="<<length[i]<<std::endl;
    1.19  
    1.20    std::cout << std::endl;
    1.21