Add graph to output and formatting