Fixed bug: re-add nodes to graph after resetting.