@open_file(0, mode='rb')
def read_gexf(path, node_type=None, relabel=False, version='1.1draft'):
 reader = GEXFReader(node_type=node_type, version=version)
 if relabel:
  G = relabel_gexf_graph(reader(path))
 else:
  G = reader(path)
 return G

@ open_file ( 0 , mode = 'rb' ) def read_gexf ( path , node_type = None , relabel = False , version = '1.1draft' ) : reader = GEXFReader ( node_type = node_type , version = version ) if relabel : G = relabel_gexf_graph ( reader ( path ) ) else : G = reader ( path ) return G
read graph in gexf format from path .