diff -r 6d94de269ab1 -r 8c14aa8f27a2 demo/helloworld.cc --- a/demo/helloworld.cc Wed Jun 29 19:44:30 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -#include -#include - -using namespace lemon; - -int main() -{ - typedef ListGraph Graph; - typedef Graph::Edge Edge; - typedef Graph::InEdgeIt InEdgeIt; - typedef Graph::OutEdgeIt OutEdgeIt; - typedef Graph::EdgeIt EdgeIt; - typedef Graph::Node Node; - typedef Graph::NodeIt NodeIt; - - Graph g; - - for (int i = 0; i < 3; i++) - g.addNode(); - - for (NodeIt i(g); i!=INVALID; ++i) - for (NodeIt j(g); j!=INVALID; ++j) - if (i != j) g.addEdge(i, j); - - std::cout << "Hello World!" << std::endl; - std::cout << std::endl; - std::cout << "This is library LEMON here! We have a graph!" << std::endl; - std::cout << std::endl; - - std::cout << "Nodes:"; - for (NodeIt i(g); i!=INVALID; ++i) - std::cout << " " << g.id(i); - std::cout << std::endl; - - std::cout << "Edges:"; - for (EdgeIt i(g); i!=INVALID; ++i) - std::cout << " (" << g.id(g.source(i)) << "," << g.id(g.target(i)) << ")"; - std::cout << std::endl; -}