tools/lgf-gen.cc
changeset 623 7c1324b35d89
parent 616 f2d6d3446adf
child 654 a312f84d86c6
     1.1 --- a/tools/lgf-gen.cc	Sat Apr 25 18:25:59 2009 +0200
     1.2 +++ b/tools/lgf-gen.cc	Sat Apr 25 02:12:41 2009 +0200
     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);