9899100101102103104105106107108
BioPAXGraph graph = (BioPAXGraph) root; if (graph.isMechanistic()) { graph.forgetLayout(); Model model = graph.getBiopaxModel(); PathwayHolder p = graph.getPathway(); p.removeFromModel(model); main.getAllPathwayNames().remove(p.getName()); }