Recursive call to the neighbours of current node inorder to get the path
if ( getDiameterPath ( tree . get ( vertex ) [ i ] , targetVertex , vertex , path ) ) { path . push ( vertex ) ; return true ; } } return false ; }