id += "-" + g.getId();
Graph result;
try {
Class<? extends Graph> cls = graphs[0].getClass();
result = cls.getConstructor(String.class).newInstance(id);
<BUG>} catch (Exception e) {
System.err.printf("*** WARNING *** can not create a graph of %s\n",
graphs[0].getClass().getName());</BUG>
result = new MultiGraph(id);
}

id += "-" + g.getId();
Graph result;
try {
Class<? extends Graph> cls = graphs[0].getClass();
result = cls.getConstructor(String.class).newInstance(id);
} catch (Exception e) {
logger.warning(String.format("Cannot create a graph of %s.", graphs[0].getClass().getName()));
result = new MultiGraph(id);
}
