Separate graph into its own file