Remove unused auxiliary classes (#597)
authorPeter Kovacs <kpeter@inf.elte.hu>
Sat, 07 Oct 2017 16:17:34 +0200
changeset 1192b79ff94e27d9
parent 1191 d9f79b81ef6c
child 1193 3ca508482e4c
Remove unused auxiliary classes (#597)
lemon/vf2pp.h
     1.1 --- a/lemon/vf2pp.h	Sat Oct 07 15:48:00 2017 +0200
     1.2 +++ b/lemon/vf2pp.h	Sat Oct 07 16:17:34 2017 +0200
     1.3 @@ -24,8 +24,6 @@
     1.4  
     1.5  #include <lemon/core.h>
     1.6  #include <lemon/concepts/graph.h>
     1.7 -#include <lemon/dfs.h>
     1.8 -#include <lemon/bfs.h>
     1.9  #include <lemon/bits/vf2_internals.h>
    1.10  
    1.11  #include <vector>
    1.12 @@ -33,37 +31,6 @@
    1.13  #include <utility>
    1.14  
    1.15  namespace lemon {
    1.16 -  namespace bits {
    1.17 -    namespace vf2pp {
    1.18 -
    1.19 -      template <class G>
    1.20 -      class DfsLeaveOrder : public DfsVisitor<G> {
    1.21 -        int i;
    1.22 -        const G &_g;
    1.23 -        std::vector<typename G::Node> &_order;
    1.24 -      public:
    1.25 -        DfsLeaveOrder(const G &g, std::vector<typename G::Node> &order)
    1.26 -          : i(countNodes(g)), _g(g), _order(order) {
    1.27 -        }
    1.28 -        void leave(const typename G::Node &node) {
    1.29 -          _order[--i]=node;
    1.30 -        }
    1.31 -      };
    1.32 -
    1.33 -      template <class G>
    1.34 -      class BfsLeaveOrder : public BfsVisitor<G> {
    1.35 -        int i;
    1.36 -        const G &_g;
    1.37 -        std::vector<typename G::Node> &_order;
    1.38 -      public:
    1.39 -        BfsLeaveOrder(const G &g, std::vector<typename G::Node> &order) { }
    1.40 -        void process(const typename G::Node &node) {
    1.41 -          _order[i++]=node;
    1.42 -        }
    1.43 -      };
    1.44 -    }
    1.45 -  }
    1.46 -
    1.47  
    1.48    ///%VF2 Plus Plus algorithm class.
    1.49