Dominating set documentation and more tests

I've added docstrings and a couple more tests to the functions `dominating_set` and `is_dominating_set`. These functions were added as part of the connectivity module (see #742) but after #916 now live in a separate module.