COIN-OR::LEMON - Graph Library

Changes in / [1008:d216e1c8b3fa:999:00f8d9f9920d] in lemon-main


Ignore:
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • lemon/concepts/graph_components.h

    r1008 r998  
    109109
    110110          bool b;
    111           ignore_unused_variable_warning(b);
    112 
    113111          b = (ia == ib) && (ia != ib);
    114112          b = (ia == INVALID) && (ib != INVALID);
  • test/bfs_test.cc

    r1008 r877  
    6262  Arc e;
    6363  int l, i;
    64   ignore_unused_variable_warning(l,i);
    6564  bool b;
    6665  BType::DistMap d(G);
     
    152151  Digraph g;
    153152  bool b;
    154   ignore_unused_variable_warning(b);
    155 
    156153  bfs(g).run(Node());
    157154  b=bfs(g).run(Node(),Node());
  • test/circulation_test.cc

    r1008 r877  
    7474  VType v;
    7575  bool b;
    76   ignore_unused_variable_warning(v,b);
    7776
    7877  typedef Circulation<Digraph, CapMap, CapMap, SupplyMap>
  • test/dfs_test.cc

    r1008 r964  
    6868  int l, i;
    6969  bool b;
    70   ignore_unused_variable_warning(l,i,b);
    71 
    7270  DType::DistMap d(G);
    7371  DType::PredMap p(G);
     
    154152  Digraph g;
    155153  bool b;
    156   ignore_unused_variable_warning(b);
    157 
    158154  dfs(g).run(Node());
    159155  b=dfs(g).run(Node(),Node());
  • test/dijkstra_test.cc

    r1008 r877  
    6666  int i;
    6767  bool b;
    68   ignore_unused_variable_warning(l,i,b);
    69 
    7068  DType::DistMap d(G);
    7169  DType::PredMap p(G);
     
    165163  Digraph g;
    166164  bool b;
    167   ignore_unused_variable_warning(b);
    168 
    169165  dijkstra(g,LengthMap()).run(Node());
    170166  b=dijkstra(g,LengthMap()).run(Node(),Node());
  • test/gomory_hu_test.cc

    r1008 r877  
    6969  Value v;
    7070  int d;
    71   ignore_unused_variable_warning(v,d);
    7271
    7372  GomoryHu<Graph, CapMap> gh_test(g, cap);
  • test/hao_orlin_test.cc

    r1008 r877  
    6767  CutMap cut;
    6868  Value v;
    69   ignore_unused_variable_warning(v);
    7069
    7170  HaoOrlin<Digraph, CapMap> ho_test(g, cap);
  • test/matching_test.cc

    r1008 r877  
    146146  MaxMatching<Graph>::Status stat =
    147147    const_mat_test.status(n);
    148   ignore_unused_variable_warning(stat);
    149148  const MaxMatching<Graph>::StatusMap& smap =
    150149    const_mat_test.statusMap();
  • test/min_cost_arborescence_test.cc

    r1008 r877  
    9292  VType c;
    9393  bool b;
    94   ignore_unused_variable_warning(c,b);
    9594  int i;
    9695  CostMap cost;
  • test/preflow_test.cc

    r1008 r924  
    8787  VType v;
    8888  bool b;
    89   ignore_unused_variable_warning(v,b);
    9089
    9190  typedef Preflow<Digraph, CapMap>
  • test/suurballe_test.cc

    r1008 r877  
    118118  int f;
    119119  VType c;
    120   ignore_unused_variable_warning(f,c);
    121 
    122120  c = const_suurb_test.totalLength();
    123121  f = const_suurb_test.flow(e);
  • tools/dimacs-solver.cc

    r1006 r877  
    118118  if (report) std::cerr << "Read the file: " << ti << '\n';
    119119
    120   typedef NetworkSimplex<Digraph, Value> MCF;
    121   ti.restart();
    122   MCF ns(g);
     120  ti.restart();
     121  NetworkSimplex<Digraph, Value> ns(g);
    123122  ns.lowerMap(lower).upperMap(cap).costMap(cost).supplyMap(sup);
    124123  if (sum_sup > 0) ns.supplyType(ns.LEQ);
    125124  if (report) std::cerr << "Setup NetworkSimplex class: " << ti << '\n';
    126125  ti.restart();
    127   typename MCF::ProblemType res = ns.run();
     126  bool res = ns.run();
    128127  if (report) {
    129128    std::cerr << "Run NetworkSimplex: " << ti << "\n\n";
    130     std::cerr << "Feasible flow: " << (res == MCF::OPTIMAL ? "found" : "not found") << '\n';
     129    std::cerr << "Feasible flow: " << (res ? "found" : "not found") << '\n';
    131130    if (res) std::cerr << "Min flow cost: "
    132131                       << ns.template totalCost<LargeValue>() << '\n';
     
    189188
    190189int main(int argc, const char *argv[]) {
     190  typedef SmartDigraph Digraph;
     191
     192  typedef Digraph::Arc Arc;
    191193
    192194  std::string inputName;
Note: See TracChangeset for help on using the changeset viewer.