Degree of Interference: A General Framework For Causal Inference Under Interference (JMLR, 2026)