docs: def to_json(self):
          """Return a JSON-serializable representation."""
          return {
              'network': self.network,
              'before_state': self.before_state,
              'after_state': self.after_state,
              'cause_indices': self.cause_indices,
              'effect_indices': self.effect_indices,
              'cut': self.cut
          }