@open_file(0, mode='rb')
def read_graphml(path, node_type=str):
 reader = GraphMLReader(node_type=node_type)
 glist = list(reader(path=path))
 return glist[0]

@ open_file ( 0 , mode = 'rb' ) def read_graphml ( path , node_type = str ) : reader = GraphMLReader ( node_type = node_type ) glist = list ( reader ( path = path ) ) return glist [ 0 ]
read graph in graphml format from path .