def to_string(self):
<EOL>node = quote_if_necessary(self.obj_dict['<STR_LIT:name>'])<EOL>node_attr = list()<EOL>for attr, value in self.obj_dict['<STR_LIT>'].items():<EOL><INDENT>if value is not None:<EOL><INDENT>node_attr.append( '<STR_LIT>' % (attr, quote_if_necessary(value) ) )<EOL><DEDENT>else:<EOL><INDENT>node_attr.append( attr )<EOL><DEDENT><DEDENT>if node in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>') and len(node_attr) == <NUM_LIT:0>:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>node_attr = '<STR_LIT:U+002CU+0020>'.join(node_attr)<EOL>if node_attr:<EOL><INDENT>node += '<STR_LIT>' + node_attr + '<STR_LIT:]>'<EOL><DEDENT>return node + '<STR_LIT:;>'<EOL>
Returns a string representation of the node in dot language.