spit out graph file