Changeset 36:199a65b64d90 in lemon-tutorial
- Timestamp:
 - 02/20/10 19:02:04 (16 years ago)
 - Branch:
 - default
 - Phase:
 - public
 - File:
 - 
          
- 1 edited
 
- 
          demo/hello_lemon.cc (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
demo/hello_lemon.cc
r20 r36 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 095 * Copyright (C) 2003-2010 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 26 26 #include <lemon/list_graph.h> 27 27 28 using namespace lemon; 29 using namespace std; 30 28 31 int main() 29 32 { 30 typedef lemon::ListDigraph Graph; 31 Graph g; 33 ListDigraph g; 32 34 33 Graph::Node u = g.addNode();34 Graph::Node v = g.addNode();35 Graph::Arc e= g.addArc(u, v);35 ListDigraph::Node u = g.addNode(); 36 ListDigraph::Node v = g.addNode(); 37 ListDigraph::Arc a = g.addArc(u, v); 36 38 37 std::cout << "Hello World! This is LEMON library here." << std::endl; 38 std::cout << "We have a directed graph with " 39 << countNodes(g) << " nodes and " 40 << countArcs(g) << " arc." << std::endl; 39 cout << "Hello World! This is LEMON library here." << endl; 40 cout << "We have a directed graph with " << countNodes(g) << " nodes " 41 << "and " << countArcs(g) << " arc." << endl; 41 42 42 43 return 0;  
Note: See TracChangeset
          for help on using the changeset viewer.
      
