def add_node(self, node):
other_nodes = [n for n in self.nodes() if n.id != node.id]<EOL>for n in other_nodes:<EOL><INDENT>if isinstance(n, Source):<EOL><INDENT>node.connect(direction="<STR_LIT>", whom=n)<EOL><DEDENT>else:<EOL><INDENT>node.connect(direction="<STR_LIT>", whom=n)<EOL><DEDENT><DEDENT>
Add a node, connecting it to everyone and back.