call is_cycle to check if it contains cycle
if ( isCycle ( adj , V ) == 1 ) System . out . print ( "Graph contains Cycle.NEW_LINE"); else System . out . print ( "Graph does not contain Cycle.NEW_LINE"); } }