Changes format of graph files