|
@@ -13,13 +13,13 @@ import View.MainView;
|
|
|
public class Main {
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- Reader r = new Reader( "save.graph" );
|
|
|
- LayeredGraphNode graph = r.readInputGraph();
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ RandomGraphGenerator r = new RandomGraphGenerator( 1, 0.5, 2, 2, 2, 2, 5 );
|
|
|
+ LayeredGraphNode graph = r.createRandomNode( null, 0 );
|
|
|
+ SweepCrossingMinimizer cminzer = new SweepCrossingMinimizer();
|
|
|
+ for( int i = 0; i < 10; i++ )
|
|
|
+ cminzer.minimizeCrossings( graph );
|
|
|
InitializeNodePositions.placeNodes( graph );
|
|
|
new MainView( graph );
|
|
|
}
|