COIN-OR::LEMON - Graph Library

Changeset 1901:723b2b81d900 in lemon-0.x for demo


Ignore:
Timestamp:
01/24/06 17:07:38 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2476
Message:

Lemon Graph Format uses label instead of id named map.

Location:
demo
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • demo/coloring.lgf

    r1683 r1901  
    11@nodeset
    2 coords  id     
     2coords  label   
    33(162, 142)      10     
    44(169, -35)      9       
     
    1313(-282, -149)    0       
    1414@undiredgeset
    15                 id     
     15                label   
    16169       10      17     
    17171       9       15     
  • demo/dir_components.lgf

    r1802 r1901  
    11@nodeset
    2 coordinates_x   coordinates_y   id     
     2coordinates_x   coordinates_y   label   
    33218.178 27.2723 19     
    44157.79  -130.517        18     
     
    2121-389.604        -136.361        1       
    2222@edgeset
    23                 id     
     23                label   
    242417      19      23     
    252519      18      24     
  • demo/graph_orientation.cc

    r1875 r1901  
    5050
    5151  ListGraph::NodeMap<int> f(g); //in-deg requirement;
    52   ListGraph::NodeMap<int> id(g);
     52  ListGraph::NodeMap<int> label(g);
    5353  ListGraph::NodeMap<xy<double> > coords(g);
    5454 
     
    5656    GraphReader<ListGraph> reader(argv[1],g);
    5757    reader.readNodeMap("f",f);
    58     reader.readNodeMap("id",id);
     58    reader.readNodeMap("label",label);
    5959    reader.readNodeMap("coordinates_x",xMap(coords));
    6060    reader.readNodeMap("coordinates_y",yMap(coords));
     
    8181  Node act;
    8282  while((act=IterableBoolNodeMap<ListGraph>::TrueIt(active))!=INVALID) {
    83     std::cout << "Process node " << id[act]
     83    std::cout << "Process node " << label[act]
    8484              << " (def=" << def[act]
    8585              << " lev=" << level[act] << "): ";
     
    8888    if(e!=INVALID) {
    8989      std::cout << " REVERT EDGE " << g.id(e)
    90                 << " (" << id[g.source(e)] << "---"
    91                 << id[g.target(e)] << ")"
     90                << " (" << label[g.source(e)] << "---"
     91                << label[g.target(e)] << ")"
    9292                << std::endl;
    9393      if(--def[act]==0) active[act]=false;
  • demo/graph_orientation.lgf

    r1687 r1901  
    11@nodeset
    2 coordinates_x   coordinates_y   f       id     
     2coordinates_x   coordinates_y   f       label   
    33-198    -73     2       7       
    44120     30      4       6       
     
    99-131    83      3       1       
    1010@edgeset
    11                 id     
     11                label   
    12127       6       3       
    13131       6       2       
  • demo/partitions.lgf

    r1802 r1901  
    11@nodeset
    2 coordinates_x   coordinates_y   id     
     2coordinates_x   coordinates_y   label   
    33513.857         -446.322        23     
    44393.468         566.711         22     
     
    2525-274            -131            1       
    2626@undiredgeset
    27                 id     
     27                label   
    282812      23      15     
    292913      23      14     
  • demo/route.lgf

    r1530 r1901  
    11@nodeset
    2 id      coordinates_x   coordinates_y   
     2label   coordinates_x   coordinates_y   
    339       447.907 578.328
    448       79.2573 909.464
     
    12120       189.239 92.5316
    1313@edgeset
    14                 length  id     
     14                length  label   
    15152       3       901.074 0       
    16168       5       270.85  1       
  • demo/sample.lgf

    r1541 r1901  
    11@nodeset
    2 id      coordinates_x   coordinates_y
     2label      coordinates_x   coordinates_y
    335       796.398 208.035
    444       573.002 63.002
     
    880       102.239 257.532
    99@edgeset
    10                 id      capacity
     10                label      capacity
    11114       5       6       8
    12123       5       5       8
  • demo/sub_gad_input.lgf

    r1577 r1901  
    11@nodeset
    2 id
     2label
    336
    445
     
    990
    1010@edgeset
    11                 id      length
     11                label      length
    12125       6       9       4
    13134       6       8       2
  • demo/undir_components.lgf

    r1802 r1901  
    11@nodeset
    2 coordinates_x   coordinates_y   id     
     2coordinates_x   coordinates_y   label   
    33574.035 177.301 44     
    44694.579 115.483 43     
     
    4545-567.302        43.6423 33     
    4646@undiredgeset
    47                 id     
     47                label   
    484841      42      44     
    494940      42      43     
Note: See TracChangeset for help on using the changeset viewer.