build interference graph