1

如果我已将文件导入容器,并且我想将另一个文件附加到前一个文件以使用 gephi 工具包生成更大的图形?

    File graphmlFile = new File("f:\\test1.graphml");
    File graphmlFile1 = new File("f:\\123.graphml");
    // Init a project - and therefore a workspace
    ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);
    pc.newProject();
    Workspace workspace = pc.getCurrentWorkspace();

    // get import controller
    ImportController importController = Lookup.getDefault().lookup(ImportController.class);

    //Import file
    Container container = importController.importFile(graphmlFile);

然后我想导入 graphmlFile1 来附加 graphmlFile,我该怎么做?

4

0 回答 0