reinitializing the whole graph only when it's really necessary