Changes to create to dat file from Graph object