COIN-OR::LEMON - Graph Library

Ticket #597: 597-5-d9f79b81ef6c-graph-type.patch

File 597-5-d9f79b81ef6c-graph-type.patch, 2.2 KB (added by Peter Kovacs, 7 years ago)
  • lemon/vf2.h

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1507384080 -7200
    # Node ID d9f79b81ef6c6a4f96b5e7e35150775b099aac63
    # Parent  c89884c1737b4b54e16d5c704a99f14df639d777
    Change the default graph type of Vf2 and Vf2pp (#597)
    
    diff --git a/lemon/vf2.h b/lemon/vf2.h
    a b  
    9494  ///use cases.
    9595  ///
    9696  ///\tparam G1 The type of the graph to be embedded.
    97   ///The default type is \ref ListDigraph.
     97  ///The default type is \ref ListGraph.
    9898  ///\tparam G2 The type of the graph g1 will be embedded into.
    99   ///The default type is \ref ListDigraph.
     99  ///The default type is \ref ListGraph.
    100100  ///\tparam M The type of the NodeMap storing the mapping.
    101101  ///By default, it is G1::NodeMap<G2::Node>
    102102  ///\tparam NEQ A bool-valued binary functor determinining whether a node is
     
    106106#ifdef DOXYGEN
    107107  template<class G1, class G2, class M, class NEQ >
    108108#else
    109   template<class G1=ListDigraph,
    110            class G2=ListDigraph,
     109  template<class G1 = ListGraph,
     110           class G2 = ListGraph,
    111111           class M = typename G1::template NodeMap<G2::Node>,
    112112           class NEQ = bits::vf2::AlwaysEq >
    113113#endif
  • lemon/vf2pp.h

    diff --git a/lemon/vf2pp.h b/lemon/vf2pp.h
    a b  
    7676  ///more convenient in most use cases.
    7777  ///
    7878  ///\tparam G1 The type of the graph to be embedded.
    79   ///The default type is \ref ListDigraph.
     79  ///The default type is \ref ListGraph.
    8080  ///\tparam G2 The type of the graph g1 will be embedded into.
    81   ///The default type is \ref ListDigraph.
     81  ///The default type is \ref ListGraph.
    8282  ///\tparam M The type of the NodeMap storing the mapping.
    8383  ///By default, it is G1::NodeMap<G2::Node>
    8484  ///\tparam M1 The type of the NodeMap storing the integer node labels of G1.
     
    9292#ifdef DOXYGEN
    9393  template<class G1, class G2, class M, class M1, class M2 >
    9494#else
    95   template<class G1=ListDigraph,
    96            class G2=ListDigraph,
     95  template<class G1 = ListGraph,
     96           class G2 = ListGraph,
    9797           class M = typename G1::template NodeMap<G2::Node>,
    9898           class M1 = typename G1::template NodeMap<int>,
    9999           class M2 = typename G2::template NodeMap<int> >