@on_trait_change("<STR_LIT>")<EOL><INDENT>def arrange_all(self):<DEDENT>
<EOL>import godot.dot_data_parser<EOL>import godot.graph<EOL>graph = godot.graph.Graph( ID="<STR_LIT:g>", directed=True )<EOL>self.conn = "<STR_LIT>"<EOL>graph.edges.append( self )<EOL>xdot_data = graph.create( format="<STR_LIT>" )<EOL><INDENT>print "<STR_LIT>", xdot_data<EOL><DEDENT>parser = godot.dot_data_parser.GodotDataParser()<EOL>ndata = xdot_data.replace('<STR_LIT>','<STR_LIT>')<EOL>tokens = parser.dotparser.parseString(ndata)[<NUM_LIT:0>]<EOL>for element in tokens[<NUM_LIT:3>]:<EOL><INDENT>cmd = element[<NUM_LIT:0>]<EOL>if cmd == "<STR_LIT>":<EOL><INDENT>cmd, src, dest, opts = element<EOL>self.set( **opts )<EOL><DEDENT><DEDENT>
Arrange the components of the node using Graphviz.