COIN-OR::LEMON - Graph Library

Ticket #597: 597-6-b79ff94e27d9-unused-classes.patch

File 597-6-b79ff94e27d9-unused-classes.patch, 1.4 KB (added by Peter Kovacs, 7 years ago)
  • lemon/vf2pp.h

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1507385854 -7200
    # Node ID b79ff94e27d97b2e0cbc1e514a2bdb391407c24a
    # Parent  d9f79b81ef6c6a4f96b5e7e35150775b099aac63
    Remove unused auxiliary classes (#597)
    
    diff --git a/lemon/vf2pp.h b/lemon/vf2pp.h
    a b  
    2424
    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
    3129#include <vector>
     
    3331#include <utility>
    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.
    6936