could you make an alt. version of this macro that takes {u, v, weight} and instead of filtering by degree filters by total in/outbound weight? the use case would be when there are say views and purchases and a user with three purchases is worth including in a sample, but a user with only three views is not.

otherwise, these macros look good to me!