modify the topologygraph