clean up graph.m