Networkx Get Edges Of A Shape