c -> it represent child p -> it represent parent i -> it represent node number p = 0 means the node is root node here also we pass reference of 2D matrix and depth vector so that the change made occur directly to the original matrix and original vector
void constructGraph ( vector < vector < int > > & jump , int * node , int * isNode , int c , int p , int i ) {