Simplifies dominating set functions.
Simplifies dominating set functions.

Also updates documentation and makes PEP8 fixes.

cmtm/networkx,NvanAdrichem/networkx,andnovar/networkx,JamesClough/networkx,goulu/networkx,Sixshaman/networkx,SanketDG/networkx,jfinkels/networkx