In his book, Gregory describes a netting set as
a set of trades that can be legally netted together in the event of a default
Obviously, the netting agreements (as per ISDA master agreement) need to be compatible.
But are there other requirements?
Is there a generally-accepted algorithm for producing netting sets from a portfolio?