Avoid building a list in neighbors_iter method of AntiGraph.
Use else clause in the while loop of clique heuristics.

Also fix wrong args order in isinstance for printing and checking k-components.