tools/lgf-gen.cc
changeset 626 58357e986a08
parent 616 f2d6d3446adf
child 654 a312f84d86c6
     1.1 --- a/tools/lgf-gen.cc	Sun Apr 26 16:44:53 2009 +0200
     1.2 +++ b/tools/lgf-gen.cc	Sun Apr 26 16:36:23 2009 +0100
     1.3 @@ -480,8 +480,8 @@
     1.4        Node b=g.v(*ei);
     1.5        g.erase(*ei);
     1.6        ConstMap<Arc,int> cegy(1);
     1.7 -      Suurballe<ListGraph,ConstMap<Arc,int> > sur(g,cegy,a,b);
     1.8 -      int k=sur.run(2);
     1.9 +      Suurballe<ListGraph,ConstMap<Arc,int> > sur(g,cegy);
    1.10 +      int k=sur.run(a,b,2);
    1.11        if(k<2 || sur.totalLength()>d)
    1.12          g.addEdge(a,b);
    1.13        else cnt++;
    1.14 @@ -511,9 +511,8 @@
    1.15        Edge ne;
    1.16        if(e==INVALID) {
    1.17          ConstMap<Arc,int> cegy(1);
    1.18 -        Suurballe<ListGraph,ConstMap<Arc,int> >
    1.19 -          sur(g,cegy,pi->a,pi->b);
    1.20 -        int k=sur.run(2);
    1.21 +        Suurballe<ListGraph,ConstMap<Arc,int> > sur(g,cegy);
    1.22 +        int k=sur.run(pi->a,pi->b,2);
    1.23          if(k<2 || sur.totalLength()>d)
    1.24            {
    1.25              ne=g.addEdge(pi->a,pi->b);