Store vDegrees of all vertices
vDegree = [ 0 ] * self . V NEW_LINE for i in self . graph : NEW_LINE INDENT vDegree [ i ] = len ( self . graph [ i ] ) NEW_LINE DEDENT self . DFSUtil ( 0 , visited , vDegree , k ) NEW_LINE