def __eq__(self, other):
        """Return whether this Subsystem is equal to the other object.

        Two Subsystems are equal if their sets of nodes, networks, and cuts are
        equal.
        """
        if not isinstance(other, Subsystem):
            return False

        return (
            set(self.node_indices) == set(other.node_indices) and
            self.state == other.state and
            self.network == other.network and
            self.cut == other.cut
        )
def __eq__ ( self , other ) : if not isinstance ( other , Subsystem ) : return False return ( set ( self . node_indices ) == set ( other . node_indices ) and self . state == other . state and self . network == other . network and self . cut == other . cut )
Return whether this Subsystem is equal to the other object.

        Two Subsystems are equal if their sets of nodes, networks, and cuts are
        equal.