Fix return on p=1 case. Addresess #521
Fix return on p=1 case. Addresess #521

RMKD/networkx,debsankha/networkx,dhimmel/networkx,Sixshaman/networkx,harlowja/networkx,jakevdp/networkx,harlowja/networkx,harlowja/networkx,nathania/networkx,aureooms/networkx,yashu-seth/networkx,kernc/networkx,ltiao/networkx,farhaanbukhsh/networkx,bzero/networkx,dmoliveira/networkx,RMKD/networkx,dmoliveira/networkx,OrkoHunter/networkx,jakevdp/networkx,ghdk/networkx,wasade/networkx,kai5263499/networkx,chrisnatali/networkx,ionanrozenfeld/networkx,aureooms/networkx,kernc/networkx,nathania/networkx,dhimmel/networkx,blublud/networkx,RMKD/networkx,SanketDG/networkx,jni/networkx,farhaanbukhsh/networkx,michaelpacer/networkx,NvanAdrichem/networkx,chrisnatali/networkx,nathania/networkx,jfinkels/networkx,dmoliveira/networkx,beni55/networkx,JamesClough/networkx,blublud/networkx,chrisnatali/networkx,goulu/networkx,jtorrents/networkx,cmtm/networkx,blublud/networkx,aureooms/networkx,bzero/networkx,tmilicic/networkx,sharifulgeo/networkx,jakevdp/networkx,andnovar/networkx,jni/networkx,kernc/networkx,sharifulgeo/networkx,ghdk/networkx,sharifulgeo/networkx,ionanrozenfeld/networkx,farhaanbukhsh/networkx,kai5263499/networkx,jcurbelo/networkx,jtorrents/networkx,ionanrozenfeld/networkx,jni/networkx,debsankha/networkx,dhimmel/networkx,kai5263499/networkx,bzero/networkx,ghdk/networkx,debsankha/networkx