# HG changeset patch
# User Peter Kovacs <kpeter@inf.elte.hu>
# Date 1507383988 -7200
# Node ID c89884c1737b4b54e16d5c704a99f14df639d777
# Parent b9fad0f9f8ab31b73eb9179793d72c0aa15c7406
Rename private methods in Vf2 and Vf2pp (#597)
diff --git a/lemon/vf2.h b/lemon/vf2.h
a
|
b
|
|
232 | 232 | } |
233 | 233 | } |
234 | 234 | |
235 | | void setOrder() { |
| 235 | void initOrder() { |
236 | 236 | // we will find pairs for the nodes of g1 in this order |
237 | 237 | |
238 | 238 | // bits::vf2::DfsLeaveOrder<G1> v(_g1,_order); |
… |
… |
|
324 | 324 | } |
325 | 325 | |
326 | 326 | //calculate the lookup table for cutting the search tree |
327 | | void setRNew1tRInOut1t() { |
| 327 | void initRNew1tRInOut1t() { |
328 | 328 | typename G1::template NodeMap<int> tmp(_g1,0); |
329 | 329 | for(unsigned int i=0; i<_order.size(); ++i) { |
330 | 330 | const typename G1::Node& orderI = _order[i]; |
… |
… |
|
360 | 360 | _currEdgeIts(countNodes(g1),INVALID), _rNew1t(g1,0), _rInOut1t(g1,0), |
361 | 361 | _mapping_type(SUBGRAPH), _deallocMappingAfterUse(0) |
362 | 362 | { |
363 | | setOrder(); |
364 | | setRNew1tRInOut1t(); |
| 363 | initOrder(); |
| 364 | initRNew1tRInOut1t(); |
365 | 365 | for(typename G1::NodeIt n(g1);n!=INVALID;++n) |
366 | 366 | m[n]=INVALID; |
367 | 367 | } |
diff --git a/lemon/vf2pp.h b/lemon/vf2pp.h
a
|
b
|
|
352 | 352 | |
353 | 353 | |
354 | 354 | //we will find pairs for the nodes of g1 in this order |
355 | | void setOrder(){ |
| 355 | void initOrder(){ |
356 | 356 | for(typename G2::NodeIt n2(_g2); n2!=INVALID; ++n2) |
357 | 357 | ++_labelTmp1[_intLabels2[n2]]; |
358 | 358 | |
… |
… |
|
464 | 464 | } |
465 | 465 | |
466 | 466 | //calculate the lookup table for cutting the search tree |
467 | | void setRNew1tRInOut1t(){ |
| 467 | void initRNew1tRInOut1t(){ |
468 | 468 | typename G1::template NodeMap<int> tmp(_g1,0); |
469 | 469 | for(unsigned int i=0; i<_order.size(); ++i) { |
470 | 470 | tmp[_order[i]]=-1; |
… |
… |
|
537 | 537 | _mapping_type(SUBGRAPH), _deallocMappingAfterUse(0), |
538 | 538 | _deallocLabelsAfterUse(0) |
539 | 539 | { |
540 | | setOrder(); |
541 | | setRNew1tRInOut1t(); |
| 540 | initOrder(); |
| 541 | initRNew1tRInOut1t(); |
542 | 542 | |
543 | 543 | //reset mapping |
544 | 544 | for(typename G1::NodeIt n(g1);n!=INVALID;++n) |