final String gmlID = "graph";
do {
str = input.readLine();
i = str.indexOf(gmlID);
} while (i == -1);
StorableSubGraph ssg = readGraph(input, str.substring(i + gmlID.length()));
model.addStorableSubGraph(ssg);
ArrayList<Integer> subgraphIds = new ArrayList<Integer>();
subgraphIds.add(ssg.getStorableId());
graph = new StorableGraph(graphName, null, ssg.getStorableId());
model.addStorableGraph(graph, subgraphIds);
VisualGraph.progressManager.removeTask(task);
} catch (IOException e) {
VisualGraph.log.printStackTrace(e.getStackTrace());
throw new CoreException(e.getMessage(), EnumCriticalityException.FAILED);