<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_source(self, source):
 """Connect the source to all existing other nodes."""

        nodes = [n for n in self.nodes() if not isinstance(n, Source)]
        source.connect(whom=nodes)