Diagram rules: phase factors

Calculate the phase factor: \( (-1)^{\mathrm{holelines} + \mathrm{loops}} \)