Fix tests for cuts.
Fix example for random_bipartite

The check of a connected graph doesn't play any role in the example.
Very rarely it gave an error to nosetests.
Merge pull request #906 from dschult/cuttestfixes

Fix some tests and examples that sometimes failed