Function to add edge into the graph
function addEdge ( adj , u , v ) { ( adj [ u ] ) . push ( v ) ; ( adj [ v ] ) . push ( u ) ; } function DFSUtil ( u , adj , visited , componentMin , componentMax ) { visited [ u ] = true ;