update the graph behavior