Tests for node connectivity

Add tests for all pairs connectivity.
Move dominating set code to separate package

Move dominating set code to dominating.py
Move tests to test_dominating.py
Whitespace cleanup
Merge pull request #916 from hagberg/add-tests

Connectivity + dominating set move