attach graph.clear