979899100101102103104105106107
{ 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());
9899100101102103104105106107108
{ BioPAXGraph graph = (BioPAXGraph) root; if (graph.isMechanistic()) { graph.forgetLayout(); Model model = graph.getBiopaxModel(); pathway p = graph.getPathway(); model.remove(p); main.getAllPathwayNames().remove(p.getNAME());