[Lemon-commits] Peter Kovacs: Rename private methods in Vf2 and ...

Lemon HG hg at lemon.cs.elte.hu
Wed Oct 17 23:21:03 CEST 2018


details:   http://lemon.cs.elte.hu/hg/lemon/rev/c89884c1737b
changeset: 1409:c89884c1737b
user:      Peter Kovacs <kpeter [at] inf.elte.hu>
date:      Sat Oct 07 15:46:28 2017 +0200
description:
	Rename private methods in Vf2 and Vf2pp (#597)

diffstat:

 lemon/vf2.h   |  8 ++++----
 lemon/vf2pp.h |  8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (64 lines):

diff --git a/lemon/vf2.h b/lemon/vf2.h
--- a/lemon/vf2.h
+++ b/lemon/vf2.h
@@ -232,7 +232,7 @@
       }
     }
 
-    void setOrder() {
+    void initOrder() {
       // we will find pairs for the nodes of g1 in this order
 
       // bits::vf2::DfsLeaveOrder<G1> v(_g1,_order);
@@ -324,7 +324,7 @@
     }
 
     //calculate the lookup table for cutting the search tree
-    void setRNew1tRInOut1t() {
+    void initRNew1tRInOut1t() {
       typename G1::template NodeMap<int> 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 --git a/lemon/vf2pp.h b/lemon/vf2pp.h
--- a/lemon/vf2pp.h
+++ b/lemon/vf2pp.h
@@ -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<int> 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)


More information about the Lemon-commits mailing list