def _directed_changed(self, new):
if new:<EOL><INDENT>conn = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>conn = "<STR_LIT>"<EOL><DEDENT>for edge in [e for g in self.all_graphs for e in g.edges]:<EOL><INDENT>edge.conn = conn<EOL><DEDENT>
Sets the connection string for all edges.