String path = getPathForStatement(s) + ".dot";
Debug.println(3, true, "Writing XML graph to: " + path);
System.err.println("Writing DOT file to " + path);
FileOutputStream out = new FileOutputStream(path);
PrintStream pout = new PrintStream(out);
new XMLGraph2Dot(pout).print(xg, getNodesWithinDepth(xg, depth));
pout.close();
} catch (IOException e) {
throw new RuntimeException(e);
}
}