Open hzhua opened 8 years ago
Thanks. This seems like a bug in the treap submodule. I'm not sure what is going on, but when I get a chance I can take a look at it.
@mikolalysenko can you have a look at it now? @hzhua did you resolve it eventually?
@mikaelu1 No, I didn't resolve this problem. I gave up using the dynamic forest as a workaround.
@hzhua , wait, you mean you ended up not using this library? Or you gave up using any dynamic forest at all?
@mikaelu1 I gave up using any dynamic forest at all.
@hzhua , lol, why was that?
Here is a grid style planer graph: oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo
Each “o” is connected to adjacent "o". When I cutting the vertexes one by one, the program will get into endless loop occasionally. Sometimes, the program works well. But sometimes, it can not stop.
Here is my code:
My debugging shows that the program loops in treap.js, line 307-309: