def to_string(self):
src = self.parse_node_ref( self.get_source() )<EOL>dst = self.parse_node_ref( self.get_destination() )<EOL>if isinstance(src, frozendict):<EOL><INDENT>edge = [ Subgraph(obj_dict=src).to_string() ]<EOL><DEDENT>elif isinstance(src, int):<EOL><INDENT>edge = [ str(src) ]<EOL><DEDENT>else:<EOL><INDENT>edge = [ src ]<EOL><DEDENT>if (self.get_parent_graph() and<EOL>self.get_parent_graph().get_top_graph_type() and<EOL>self.get_parent_graph().get_top_graph_type() == '<STR_LIT>' ):<EOL><INDENT>edge.append( '<STR_LIT>' )<EOL><DEDENT>else:<EOL><INDENT>edge.append( '<STR_LIT>' )<EOL><DEDENT>if isinstance(dst, frozendict):<EOL><INDENT>edge.append( Subgraph(obj_dict=dst).to_string() )<EOL><DEDENT>elif isinstance(dst, int):<EOL><INDENT>edge.append( str(dst) )<EOL><DEDENT>else:<EOL><INDENT>edge.append( dst )<EOL><DEDENT>edge_attr = list()<EOL>for attr, value in self.obj_dict['<STR_LIT>'].items():<EOL><INDENT>if value is not None:<EOL><INDENT>edge_attr.append( '<STR_LIT>' % (attr, quote_if_necessary(value) ) )<EOL><DEDENT>else:<EOL><INDENT>edge_attr.append( attr )<EOL><DEDENT><DEDENT>edge_attr = '<STR_LIT:U+002CU+0020>'.join(edge_attr)<EOL>if edge_attr:<EOL><INDENT>edge.append( '<STR_LIT>' + edge_attr + '<STR_LIT:]>' )<EOL><DEDENT>return '<STR_LIT:U+0020>'.join(edge) + '<STR_LIT:;>'<EOL>
Returns a string representation of the edge in dot language.