construction of graph here 0 represent that the node is root node
constructGraph ( jump , node , isNode , 2 , 0 , 0 ) ; constructGraph ( jump , node , isNode , 5 , 2 , 1 ) ; constructGraph ( jump , node , isNode , 3 , 5 , 2 ) ; constructGraph ( jump , node , isNode , 4 , 5 , 3 ) ; constructGraph ( jump , node , isNode , 1 , 5 , 4 ) ; constructGraph ( jump , node , isNode , 7 , 1 , 5 ) ; constructGraph ( jump , node , isNode , 9 , 1 , 6 ) ; constructGraph ( jump , node , isNode , 10 , 9 , 7 ) ; constructGraph ( jump , node , isNode , 11 , 10 , 8 ) ; constructGraph ( jump , node , isNode , 6 , 10 , 9 ) ; constructGraph ( jump , node , isNode , 8 , 10 , 10 ) ;