def _edge_func(G):
 if G.is_multigraph():
  def get_edges(nbunch=None):
   return G.edges(nbunch, keys=True)
 else:
  def get_edges(nbunch=None):
   return G.edges(nbunch)
 return get_edges

def _edge_func ( G ) : if G . is_multigraph ( ) : def get_edges ( nbunch = None ) : return G . edges ( nbunch , keys = True ) else : def get_edges ( nbunch = None ) : return G . edges ( nbunch ) return get_edges
returns the edges from g .