#NEWLINE# def add_node( self , G , node_xml , graphml_keys ) : #NEWLINE# #INDENT# 'Add a node to the graph.\n        ' #NEWLINE# ports = node_xml . find ( ( '{%s}port' % node_id . NS_GRAPHML ) ) #NEWLINE# if ( ports is not None ) : #NEWLINE# #INDENT# warnings . warn ( 'GraphML port tag not supported.' ) #NEWLINE# #UNINDENT# node_id = self . node_type ( node_xml . get ( 'id' ) ) #NEWLINE# data = self . decode_data_elements ( graphml_keys , node_xml ) #NEWLINE# G . add_node ( node_id , data )