|
@@ -20,7 +20,7 @@ public class BlockCalc implements AlgorithmStage {
|
|
|
private int nodeIndex;
|
|
|
private int r;
|
|
|
private LayeredGraphNode graph;
|
|
|
- private ArrayList< ArrayList< BKNodePlacement > > subgraphAlgs;
|
|
|
+ private ArrayList< ArrayList< ExtremalLayoutCalc > > subgraphAlgs;
|
|
|
private ArrayList< BackwardAction > backwards;
|
|
|
private LayoutType layout;
|
|
|
int step;
|
|
@@ -36,7 +36,7 @@ public class BlockCalc implements AlgorithmStage {
|
|
|
subgraphAlgs = new ArrayList<>();
|
|
|
for( ArrayList<LayeredGraphNode> l : graph.getContainedLayers() )
|
|
|
{
|
|
|
- ArrayList< BKNodePlacement > algs = new ArrayList<>();
|
|
|
+ ArrayList< ExtremalLayoutCalc > algs = new ArrayList<>();
|
|
|
for( int i = 0; i < l.size(); i++ )
|
|
|
algs.add( null );
|
|
|
subgraphAlgs.add( algs );
|
|
@@ -78,7 +78,7 @@ public class BlockCalc implements AlgorithmStage {
|
|
|
if( current.getContainedNodes().size() > 0 )
|
|
|
{
|
|
|
if( subgraphAlgs.get( calcLayerIndex() ).get( calcNodeIndex( nodeIndex ) ) == null )
|
|
|
- subgraphAlgs.get( calcLayerIndex() ).set( calcNodeIndex( nodeIndex ), new BKNodePlacement( null, current ) );
|
|
|
+ subgraphAlgs.get( calcLayerIndex() ).set( calcNodeIndex( nodeIndex ), new ExtremalLayoutCalc( layout, current ) );
|
|
|
if( subgraphAlgs.get( calcLayerIndex() ).get( calcNodeIndex( nodeIndex ) ).forwardStep() == StageStatus.UNFINISHED )
|
|
|
return StageStatus.UNFINISHED;
|
|
|
}
|