protected void export(Context ctx, Graph g) throws IOException {
ctx.gexf.disable(GEXF.Extension.DYNAMICS);
GraphReplay replay = new GraphReplay("replay");
replay.addSink(ctx.gexf);
replay.replay(g);
try {
ctx.gexf.export(ctx.stream);
ctx.stream.close();