def __contains__(self, triple):
    'Wrapper for checking if triple is contained in the graph.'
    return (self._sanitize_triple(triple) in self.graph)
Wrapper for checking if triple is contained in the graph.
def __contains__(self, triple):
    
    return (self._sanitize_triple(triple) in self.graph)