def parse_graphml(graphml_string, node_type=str):
 reader = GraphMLReader(node_type=node_type)
 glist = list(reader(string=graphml_string))
 return glist[0]

def parse_graphml ( graphml_string , node_type = str ) : reader = GraphMLReader ( node_type = node_type ) glist = list ( reader ( string = graphml_string ) ) return glist [ 0 ]
read graph in graphml format from string .