COIN-OR::LEMON - Graph Library

Changeset 1928:2e957d67d7b9 in lemon-0.x for demo/hello_lemon.cc


Ignore:
Timestamp:
01/30/06 10:32:26 (14 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2503
Message:

Use [] instead of set().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/hello_lemon.cc

    r1875 r1928  
    5757  LengthMap length(g);
    5858
    59   length.set(s_v2, 10);
    60   length.set(s_v3, 10);
    61   length.set(v2_v4, 5);
    62   length.set(v2_v5, 8);
    63   length.set(v3_v5, 5);
    64   length.set(v4_t, 8);
    65   length.set(v5_t, 8);
     59  length[s_v2]=10;
     60  length[s_v3]=10;
     61  length[v2_v4]=5;
     62  length[v2_v5]=8;
     63  length[v3_v5]=5;
     64  length[v4_t]=8;
     65  length[v5_t]=8;
    6666
    6767  std::cout << "Hello World!" << std::endl;
Note: See TracChangeset for help on using the changeset viewer.