I am trying to implement Dynamic graph using Treap data structue.
Here is node structure:
class TreapNode { public: int