def negative(edge): """Produces the negative of the given edge.""" return (sym.negative(edge[0]),) + edge[1:]
def test_negative(self): self.assertEqual(sym.negative('~is'), 'is') self.assertEqual(sym.negative('is'), '~is')
def negative(edge): """Produces the negative of the given edge.""" return (sym.negative(edge[0]), ) + edge[1:]