Find complement of G [ ] [ ] All values are complemented except diagonal ones
GC = [ [ None ] * V for i in range ( V ) ] NEW_LINE for i in range ( V ) : NEW_LINE INDENT for j in range ( V ) : NEW_LINE INDENT GC [ i ] [ j ] = not G [ i ] [ j ] if i != j else 0 NEW_LINE DEDENT DEDENT