def test4(self): self.pag.add_edge(1, 2) self.pag.add_edge(3, 2) self.pag.add_edge(3, 1) dseps = FCIAlg.possible_d_seps(self.pag) assert (dseps == { 1: [2, 3], 2: [1, 3], 3: [1, 2], 4: [], 5: [], 6: [] })
def test2(self): self.pag.add_edge(1, 2) self.pag.add_edge(2, 3) self.pag.fully_direct_edge(1, 2) self.pag.fully_direct_edge(3, 2) dseps = FCIAlg.possible_d_seps(self.pag) assert (dseps == { 1: [2, 3], 2: [1, 3], 3: [1, 2], 4: [], 5: [], 6: [] })