Get rid of numbers map, look it up directly from the array.
Also modify the keys for the dependency graph, use the hashed version of the todo instead of its position. The position may shift when deleting tasks, which affects the consistency of the dependency graph.
Showing
Please register or sign in to comment