# HG changeset patch # User Peter Kovacs # Date 1507383988 -7200 # Node ID c89884c1737b4b54e16d5c704a99f14df639d777 # Parent b9fad0f9f8ab31b73eb9179793d72c0aa15c7406 Rename private methods in Vf2 and Vf2pp (#597) diff -r b9fad0f9f8ab -r c89884c1737b lemon/vf2.h --- a/lemon/vf2.h Sat Oct 07 15:45:56 2017 +0200 +++ b/lemon/vf2.h Sat Oct 07 15:46:28 2017 +0200 @@ -232,7 +232,7 @@ } } - void setOrder() { + void initOrder() { // we will find pairs for the nodes of g1 in this order // bits::vf2::DfsLeaveOrder v(_g1,_order); @@ -324,7 +324,7 @@ } //calculate the lookup table for cutting the search tree - void setRNew1tRInOut1t() { + void initRNew1tRInOut1t() { typename G1::template NodeMap tmp(_g1,0); for(unsigned int i=0; i<_order.size(); ++i) { const typename G1::Node& orderI = _order[i]; @@ -360,8 +360,8 @@ _currEdgeIts(countNodes(g1),INVALID), _rNew1t(g1,0), _rInOut1t(g1,0), _mapping_type(SUBGRAPH), _deallocMappingAfterUse(0) { - setOrder(); - setRNew1tRInOut1t(); + initOrder(); + initRNew1tRInOut1t(); for(typename G1::NodeIt n(g1);n!=INVALID;++n) m[n]=INVALID; } diff -r b9fad0f9f8ab -r c89884c1737b lemon/vf2pp.h --- a/lemon/vf2pp.h Sat Oct 07 15:45:56 2017 +0200 +++ b/lemon/vf2pp.h Sat Oct 07 15:46:28 2017 +0200 @@ -352,7 +352,7 @@ //we will find pairs for the nodes of g1 in this order - void setOrder(){ + void initOrder(){ for(typename G2::NodeIt n2(_g2); n2!=INVALID; ++n2) ++_labelTmp1[_intLabels2[n2]]; @@ -464,7 +464,7 @@ } //calculate the lookup table for cutting the search tree - void setRNew1tRInOut1t(){ + void initRNew1tRInOut1t(){ typename G1::template NodeMap tmp(_g1,0); for(unsigned int i=0; i<_order.size(); ++i) { tmp[_order[i]]=-1; @@ -537,8 +537,8 @@ _mapping_type(SUBGRAPH), _deallocMappingAfterUse(0), _deallocLabelsAfterUse(0) { - setOrder(); - setRNew1tRInOut1t(); + initOrder(); + initRNew1tRInOut1t(); //reset mapping for(typename G1::NodeIt n(g1);n!=INVALID;++n)