|
@@ -17,9 +17,12 @@ public class Main {
|
|
* @param args the command line arguments, currently not in use
|
|
* @param args the command line arguments, currently not in use
|
|
*/
|
|
*/
|
|
public static void main(String[] args) {
|
|
public static void main(String[] args) {
|
|
|
|
+ // read a graph from a file
|
|
Reader r = new Reader( "logo.json" );
|
|
Reader r = new Reader( "logo.json" );
|
|
LayeredGraphNode graph = r.readInputGraph();
|
|
LayeredGraphNode graph = r.readInputGraph();
|
|
|
|
+ // compute some initial position for the graph
|
|
SimpleNodePlacement.placeNodes( graph );
|
|
SimpleNodePlacement.placeNodes( graph );
|
|
|
|
+ // create the view
|
|
new MainView( graph );
|
|
new MainView( graph );
|
|
}
|
|
}
|
|
|
|
|