code: def iterEdges(self, filterSelfLoops=False):
          
          for p in self.iterPorts():
              yield from p.iterEdges(filterSelfLoops=filterSelfLoops)
docs: Iter edges connected from outside of this unit