One by one check all not yet colored vertices .
for i in range ( V ) : NEW_LINE INDENT if ( colorArr [ i ] == - 1 ) : NEW_LINE INDENT if ( isBipartiteUtil ( G , i , colorArr ) == False ) : NEW_LINE INDENT return False NEW_LINE DEDENT DEDENT DEDENT return True NEW_LINE