def __contains__(self, triple):
        for triple in self.triples(triple):
            return True
        return False
Support for 'triple in graph' syntax
dataset/ETHPy150Open RDFLib/rdflib/rdflib/graph.py/Graph.__contains__