You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there is a Bug by decreasing edgeSize after removing multiple nodes at the same time. edgeCount of nodes has incorrect value after deleting a neighbor node.
Argh, thanks a lot, you've discovered a conceptual bug here. I was striving to make removeNode O(1) amortized, but finally it's too cumbersome to implement for no practical benefit. Switched it back to traditional O(E).
The upside is that the code's much cleaner.
I think there is a Bug by decreasing edgeSize after removing multiple nodes at the same time. edgeCount of nodes has incorrect value after deleting a neighbor node.
The following test fails:
The text was updated successfully, but these errors were encountered: