graph to string formatting changed