Variables to store if a node V has at - most one back edge and store the depth of the node for the edge
var isPossible = Array ( MAX ) . fill ( 0 ) ; var depth = Array ( MAX ) . fill ( 0 ) ; var adj = [ ] ; var vis = Array ( MAX ) . fill ( 0 ) ; class pair { constructor ( first , second ) { this . first = first ; this . second = second ; } }