transition for the graph