COIN-OR::LEMON - Graph Library

Changeset 1880:0d6da6e6a775 in lemon-0.x


Ignore:
Timestamp:
01/06/06 11:42:58 (14 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2455
Message:

Reformatting: too long code lines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/kruskalbox.cc

    r1879 r1880  
    1111{
    1212  Graph g=mapstorage->graph;
    13   Graph::EdgeMap<double> * inputmap=((mapstorage->edgemap_storage)[(edgemapcbts[INPUT])->get_active_text()]);
     13  Graph::EdgeMap<double> * inputmap=
     14    ((mapstorage->edgemap_storage)[(edgemapcbts[INPUT])->get_active_text()]);
    1415  Graph::EdgeMap<bool> outputmap(g);
    1516  double res=kruskal(g, *inputmap, outputmap);
     
    1920    if(outputmap[i])
    2021      {
    21         (*((mapstorage->edgemap_storage)[(edgemapcbts[OUTPUT])->get_active_text()]))[i]=1;
     22        (*((mapstorage->edgemap_storage)[(edgemapcbts[OUTPUT])->
     23                                         get_active_text()]))[i]=1;
    2224      }
    2325    else
    2426      {
    25         (*((mapstorage->edgemap_storage)[(edgemapcbts[OUTPUT])->get_active_text()]))[i]=0;
     27        (*((mapstorage->edgemap_storage)[(edgemapcbts[OUTPUT])->
     28                                         get_active_text()]))[i]=0;
    2629      }
    2730  }
     
    3033  o << "Result: " << res;
    3134  resultlabel.set_text(o.str());
    32 
    33   mapstorage->changeActiveMap(true, E_COLOR, (edgemapcbts[OUTPUT])->get_active_text());
    34   mapstorage->changeActiveMap(true, E_TEXT, (edgemapcbts[INPUT])->get_active_text());
     35 
     36  mapstorage->changeActiveMap(true, E_COLOR,
     37                              (edgemapcbts[OUTPUT])->get_active_text());
     38  mapstorage->changeActiveMap(true, E_TEXT,
     39                              (edgemapcbts[INPUT])->get_active_text());
    3540}
    3641   
Note: See TracChangeset for help on using the changeset viewer.