Skip to content

Commit

Permalink
Removed unnecessary things.
Browse files Browse the repository at this point in the history
  • Loading branch information
stu224382 committed Sep 25, 2024
1 parent eb9fc01 commit 2bcb66d
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,20 @@
*/
package org.eclipse.elk.alg.knot;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.eclipse.elk.core.AbstractLayoutProvider;
import org.eclipse.elk.core.math.ElkPadding;
import org.eclipse.elk.core.math.KVector;
import org.eclipse.elk.core.util.IElkProgressMonitor;
import org.eclipse.elk.graph.ElkBendPoint;
import org.eclipse.elk.graph.ElkEdge;
import org.eclipse.elk.graph.ElkEdgeSection;
import org.eclipse.elk.graph.ElkNode;
import org.eclipse.elk.graph.util.ElkGraphUtil;
import org.eclipse.elk.alg.common.NodeMicroLayout;
import org.eclipse.elk.alg.force.ComponentsProcessor;
import org.eclipse.elk.alg.force.ElkGraphImporter;
import org.eclipse.elk.alg.force.ForceLayoutProvider;
import org.eclipse.elk.alg.force.IGraphImporter;
import org.eclipse.elk.alg.force.graph.FBendpoint;
import org.eclipse.elk.alg.force.graph.FEdge;
import org.eclipse.elk.alg.force.graph.FGraph;
import org.eclipse.elk.alg.force.graph.FNode;
import org.eclipse.elk.alg.force.options.ForceOptions;
import org.eclipse.elk.alg.force.options.StressOptions;
import org.eclipse.elk.alg.force.stress.StressMajorization;
import org.eclipse.elk.alg.knot.options.KnotOptions;
Expand Down Expand Up @@ -119,7 +111,7 @@ public void layout(final ElkNode layoutGraph, final IElkProgressMonitor progress
this.curveWidthFactor = layoutGraph.getProperty(KnotOptions.CURVE_WIDTH_FACTOR);
this.iterationLimit = layoutGraph.getProperty(KnotOptions.ITERATION_LIMIT);


epsilon = 10e-4;

// -------- Use stress layout as initial layout. (reused section) --------
// transform the input graph
Expand Down Expand Up @@ -500,7 +492,7 @@ private void stressMinimizingRotation(ElkNode node) {
}

count++;
} while(count < iterationLimit);
} while(count < iterationLimit && epsilon < 2);
}


Expand Down

0 comments on commit 2bcb66d

Please sign in to comment.