Example - 1
addEdge ( adj , 1 , 2 ) NEW_LINE addEdge ( adj , 1 , 3 ) NEW_LINE addEdge ( adj , 3 , 2 ) NEW_LINE addEdge ( adj , 2 , 4 ) NEW_LINE addEdge ( adj , 3 , 4 ) NEW_LINE print ( findLongestPath ( adj , n ) ) NEW_LINE