fix graph.reset()

[#54785670]