Export the graph structure in various formats