implement undo
Opened this issue · 1 comments
tch1001 commented
for screw ups like deleting an entire subgraph. can just be the last deletion, doesn't need to be an entire stack
it's alright to just implement undo for deletion, because i don't see a need to implement it for adding of nodes (can foresee it being laggy due to server requests + accidental undoing of added nodes)
bushshrub commented
Possible approach: Simply maintain a history stack and a pointer to the current time. Every action taken should have a method to reverse it. If you need help please ask!