COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/graph_copy_test.cc

    r282 r220  
    6464  ListDigraph::ArcMap<SmartDigraph::Arc> ecr(to);
    6565
    66   digraphCopy(from, to).
    67     nodeMap(fnm, tnm).arcMap(fam, tam).
     66  DigraphCopy<ListDigraph, SmartDigraph>(to, from).
     67    nodeMap(tnm, fnm).arcMap(tam, fam).
    6868    nodeRef(nr).arcRef(er).
    6969    nodeCrossRef(ncr).arcCrossRef(ecr).
    70     node(fn, tn).arc(fa, ta).run();
     70    node(tn, fn).arc(ta, fa).run();
    7171
    7272  for (SmartDigraph::NodeIt it(from); it != INVALID; ++it) {
     
    139139  ListGraph::EdgeMap<SmartGraph::Edge> ecr(to);
    140140
    141   graphCopy(from, to).
    142     nodeMap(fnm, tnm).arcMap(fam, tam).edgeMap(fem, tem).
     141  GraphCopy<ListGraph, SmartGraph>(to, from).
     142    nodeMap(tnm, fnm).arcMap(tam, fam).edgeMap(tem, fem).
    143143    nodeRef(nr).arcRef(ar).edgeRef(er).
    144144    nodeCrossRef(ncr).arcCrossRef(acr).edgeCrossRef(ecr).
    145     node(fn, tn).arc(fa, ta).edge(fe, te).run();
     145    node(tn, fn).arc(ta, fa).edge(te, fe).run();
    146146
    147147  for (SmartGraph::NodeIt it(from); it != INVALID; ++it) {
Note: See TracChangeset for help on using the changeset viewer.