code-data/figures/src/Gephi/Visualize.java
/**
     * @param args the command line arguments
     */
@param args the command line arguments
@param args the command line arguments
public static void main(String[] args) {
        ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);
        pc.newProject();
        Workspace workspace = pc.getCurrentWorkspace();
        ImportController importController = Lookup.getDefault().lookup(ImportController.class);
        Container container;
        try {
            File file = new File("reproducibility.graphml");
            container = importController.importFile(file);
        } catch (Exception ex) {
            ex.printStackTrace();
            return;
        }
        importController.process(container, new DefaultProcessor(), workspace);
        ExportController ec = Lookup.getDefault().lookup(ExportController.class);
        PreviewModel model = Lookup.getDefault().lookup(PreviewController.class).getModel();
        PreviewProperties prop = model.getProperties();
        prop.putValue(PreviewProperty.EDGE_CURVED, false);
        try {
           ec.exportFile(new File("reproducibility.pdf"));
        } catch (IOException ex) {
           ex.printStackTrace();
           return;
        }
        pc.newProject();
        workspace = pc.getCurrentWorkspace();
        try {
            File file = new File("openScience.graphml");
            container = importController.importFile(file);
        } catch (Exception ex) {
            ex.printStackTrace();
            return;
        }
        model = Lookup.getDefault().lookup(PreviewController.class).getModel();
        importController.process(container, new DefaultProcessor(), workspace);
        ec = Lookup.getDefault().lookup(ExportController.class);
        prop = model.getProperties();
        prop.putValue(PreviewProperty.EDGE_CURVED, false);
        try {
           ec.exportFile(new File("openScience.pdf"));
        } catch (IOException ex) {
           ex.printStackTrace();
           return;
        }
    }
public static void main ( String [ ] args ) { ProjectController pc = Lookup . getDefault ( ) . lookup ( ProjectController . class ) ; pc . newProject ( ) ; Workspace workspace = pc . getCurrentWorkspace ( ) ; ImportController importController = Lookup . getDefault ( ) . lookup ( ImportController . class ) ; Container container ; try { File file = new File ( "reproducibility.graphml" ) ; container = importController . importFile ( file ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; return ; } importController . process ( container , new DefaultProcessor ( ) , workspace ) ; ExportController ec = Lookup . getDefault ( ) . lookup ( ExportController . class ) ; PreviewModel model = Lookup . getDefault ( ) . lookup ( PreviewController . class ) . getModel ( ) ; PreviewProperties prop = model . getProperties ( ) ; prop . putValue ( PreviewProperty . EDGE_CURVED , false ) ; try { ec . exportFile ( new File ( "reproducibility.pdf" ) ) ; } catch ( IOException ex ) { ex . printStackTrace ( ) ; return ; } pc . newProject ( ) ; workspace = pc . getCurrentWorkspace ( ) ; try { File file = new File ( "openScience.graphml" ) ; container = importController . importFile ( file ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; return ; } model = Lookup . getDefault ( ) . lookup ( PreviewController . class ) . getModel ( ) ; importController . process ( container , new DefaultProcessor ( ) , workspace ) ; ec = Lookup . getDefault ( ) . lookup ( ExportController . class ) ; prop = model . getProperties ( ) ; prop . putValue ( PreviewProperty . EDGE_CURVED , false ) ; try { ec . exportFile ( new File ( "openScience.pdf" ) ) ; } catch ( IOException ex ) { ex . printStackTrace ( ) ; return ; } }
@param args the command line arguments
@param args the command line arguments
//Init a project - and therefore a workspace
 //Get controllers and models
 //Import file
 //Append imported data to GraphAPI
 //Set preview for final visualization
 //Simple PDF export
 //plotting 2nd visualization
 //Import file
 //Set preview for final visualization
