Would give ability to rely on newer libs See https://stackoverflow.com/questions/23349428/how-to-generate-a-graphml-file-in-java-gephi-jgraph-prefuse-etc - Relies on JGraphT https://jgrapht.org/ and graphMLExporter : https://jgrapht.org/javadoc/org.jgrapht.io/org/jgrapht/nio/graphml/package-summary.html Ho, and there is also a GEXF exporter: https://jgrapht.org/javadoc/org.jgrapht.io/org/jgrapht/nio/gexf/package-summary.html