COIN-OR::LEMON - Graph Library

Changeset 1192:b79ff94e27d9 in lemon-main


Ignore:
Timestamp:
10/07/17 16:17:34 (7 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Remove unused auxiliary classes (#597)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/vf2pp.h

    r1191 r1192  
    2525#include <lemon/core.h>
    2626#include <lemon/concepts/graph.h>
    27 #include <lemon/dfs.h>
    28 #include <lemon/bfs.h>
    2927#include <lemon/bits/vf2_internals.h>
    3028
     
    3432
    3533namespace lemon {
    36   namespace bits {
    37     namespace vf2pp {
    38 
    39       template <class G>
    40       class DfsLeaveOrder : public DfsVisitor<G> {
    41         int i;
    42         const G &_g;
    43         std::vector<typename G::Node> &_order;
    44       public:
    45         DfsLeaveOrder(const G &g, std::vector<typename G::Node> &order)
    46           : i(countNodes(g)), _g(g), _order(order) {
    47         }
    48         void leave(const typename G::Node &node) {
    49           _order[--i]=node;
    50         }
    51       };
    52 
    53       template <class G>
    54       class BfsLeaveOrder : public BfsVisitor<G> {
    55         int i;
    56         const G &_g;
    57         std::vector<typename G::Node> &_order;
    58       public:
    59         BfsLeaveOrder(const G &g, std::vector<typename G::Node> &order) { }
    60         void process(const typename G::Node &node) {
    61           _order[i++]=node;
    62         }
    63       };
    64     }
    65   }
    66 
    6734
    6835  ///%VF2 Plus Plus algorithm class.
Note: See TracChangeset for help on using the changeset viewer.