COIN-OR::LEMON - Graph Library

Changeset 627:6cc21a9c9fda in lemon-0.x for src/work/deba/main.cpp


Ignore:
Timestamp:
05/13/04 10:20:39 (17 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@818
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/deba/main.cpp

    r595 r627  
    88
    99int main() {
    10         ListGraph g;
    11         for (int i = 0; i < 3; ++i) {
    12                 ListGraph::Node node = g.addNode();
    13         }
    14         ListGraph::NodeMapFactory::Map<int> map(g, g.node_maps);
    15         for (int i = 0; i < 10; ++i) {
    16                 ListGraph::Node node = g.addNode();
    17                 map[node] = rand()%100;
    18         }
    19         for (ListGraph::NodeIt it(g); g.valid(it); g.next(it)) {
    20                 cout << map[it] << endl;
    21         }
    22         return 0;
     10  ListGraph g;
     11  for (int i = 0; i < 10; ++i) {
     12    ListGraph::Node node = g.addNode();
     13  }
     14  ListGraph::NodeMapFactory::Map<int> map(g, g.node_maps);
     15  for (int i = 0; i < 10; ++i) {
     16    ListGraph::Node node = g.addNode();
     17    map[node] = rand()%100;
     18  }
     19  for (ListGraph::NodeIt it(g); g.valid(it); g.next(it)) {
     20    cout << map[it] << endl;
     21  }
     22  return 0;
    2323}
    2424
Note: See TracChangeset for help on using the changeset viewer.