demo/hello_lemon.cc
changeset 1946 17eb3eaad9f8
parent 1875 98698b69a902
child 1956 a055123339d5
equal deleted inserted replaced
6:363bdb6c970c 7:dab618c03dd4
    54   Edge v4_t=g.addEdge(v4, t);
    54   Edge v4_t=g.addEdge(v4, t);
    55   Edge v5_t=g.addEdge(v5, t);
    55   Edge v5_t=g.addEdge(v5, t);
    56   
    56   
    57   LengthMap length(g);
    57   LengthMap length(g);
    58 
    58 
    59   length.set(s_v2, 10);
    59   length[s_v2]=10;
    60   length.set(s_v3, 10);
    60   length[s_v3]=10;
    61   length.set(v2_v4, 5);
    61   length[v2_v4]=5;
    62   length.set(v2_v5, 8);
    62   length[v2_v5]=8;
    63   length.set(v3_v5, 5);
    63   length[v3_v5]=5;
    64   length.set(v4_t, 8);
    64   length[v4_t]=8;
    65   length.set(v5_t, 8);
    65   length[v5_t]=8;
    66 
    66 
    67   std::cout << "Hello World!" << std::endl;
    67   std::cout << "Hello World!" << std::endl;
    68   std::cout <<  std::endl;
    68   std::cout <<  std::endl;
    69   std::cout << "This is library LEMON here! We have a graph!" << std::endl;
    69   std::cout << "This is library LEMON here! We have a graph!" << std::endl;
    70   std::cout <<  std::endl;
    70   std::cout <<  std::endl;