demo/hello_lemon.cc
changeset 1526 8c14aa8f27a2
parent 1520 c2c76e4598f6
child 1530 d99c3c84f797
equal deleted inserted replaced
0:a4c1e0597261 1:458c7f3409ed
    15   
    15   
    16   for (NodeIt i(g); i!=INVALID; ++i)
    16   for (NodeIt i(g); i!=INVALID; ++i)
    17     for (NodeIt j(g); j!=INVALID; ++j)
    17     for (NodeIt j(g); j!=INVALID; ++j)
    18       if (i != j) g.addEdge(i, j);
    18       if (i != j) g.addEdge(i, j);
    19 
    19 
       
    20   std::cout << "Hello World!" << std::endl;
       
    21   std::cout <<  std::endl;
       
    22   std::cout << "This is library LEMON here! We have a graph!" << std::endl;
       
    23   std::cout <<  std::endl;
       
    24 
    20   std::cout << "Nodes:";
    25   std::cout << "Nodes:";
    21   for (NodeIt i(g); i!=INVALID; ++i)
    26   for (NodeIt i(g); i!=INVALID; ++i)
    22     std::cout << " " << g.id(i);
    27     std::cout << " " << g.id(i);
    23   std::cout << std::endl;
    28   std::cout << std::endl;
    24 
    29