(self)
return True
Tells if a block is orphan, i.e. whether it has any connection
Tells if a block is orphan, i.e. whether it has any connection
Tells if a block is orphan i . e . whether it has any connection
def is_orphan(self) -> bool:
        """ Tells if a block is orphan, i.e. whether it has any connection """
        for in_pin in self.input_pins:
            if in_pin.origin:
                return False
        for out_pin in self.output_pins:
            if out_pin.destinations:
                return False
        return True
def is_orphan ( self ) -> bool : for in_pin in self . input_pins : if in_pin . origin : return False for out_pin in self . output_pins : if out_pin . destinations : return False return True