@@ -204,14 +204,13 @@ private void addChildToQueue(int fixedEditorialCost,
204204 double [][] costMatrix = new double [costMatrixSize ][costMatrixSize ];
205205
206206 Map <Vertex , Double > isolatedVerticesCache = new LinkedHashMap <>();
207-
208- Map <Vertex , Vertex > parentRestrictions = getNonFixedRestrictions (parentPartialMapping , completeSourceGraph , completeTargetGraph );
207+ Map <Vertex , Vertex > nonFixedParentRestrictions = getNonFixedRestrictions (parentPartialMapping , completeSourceGraph , completeTargetGraph );
209208
210209 for (int i = parentLevel ; i < allSources .size (); i ++) {
211210 Vertex v = allSources .get (i );
212211 int j = 0 ;
213212 for (Vertex u : availableTargetVertices ) {
214- double cost = calcLowerBoundMappingCost (v , u , parentPartialMapping , isolatedVerticesCache , parentRestrictions );
213+ double cost = calcLowerBoundMappingCost (v , u , parentPartialMapping , isolatedVerticesCache , nonFixedParentRestrictions );
215214 costMatrixForHungarianAlgo [i - parentLevel ][j ] = cost ;
216215 costMatrix [i - parentLevel ][j ] = cost ;
217216 j ++;
@@ -399,9 +398,9 @@ private double calcLowerBoundMappingCost(Vertex v,
399398 Vertex u ,
400399 Mapping partialMapping ,
401400 Map <Vertex , Double > isolatedVerticesCache ,
402- Map <Vertex , Vertex > parentRestrictions ) {
403- if (parentRestrictions .containsKey (v ) || partialMapping .hasParentRestriction (v )) {
404- Vertex uParentRestriction = parentRestrictions .get (v );
401+ Map <Vertex , Vertex > nonFixedParentRestrictions ) {
402+ if (nonFixedParentRestrictions .containsKey (v ) || partialMapping .hasParentRestriction (v )) {
403+ Vertex uParentRestriction = nonFixedParentRestrictions .get (v );
405404 if (uParentRestriction == null ) {
406405 uParentRestriction = partialMapping .getParentRestriction (v );
407406 }
0 commit comments