Code improvement
Code improvement

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