def __mul__(self, other):
        """Set-theoretic intersection.
           BNode IDs are not changed."""
        retval = Graph()
        for x in other:
            if x in self:
                retval.add(x)
        return retval
dataset/ETHPy150Open RDFLib/rdflib/rdflib/graph.py/Graph.__mul__/original