def __sub__(self, other):
        retval = Graph()
        for x in self:
            if not x in other:
                retval.add(x)
        return retval
Set-theoretic difference.
dataset/ETHPy150Open RDFLib/rdflib/rdflib/graph.py/Graph.__sub__