def exists(self, subgraph):
        """ Determine whether one or more graph entities all exist within the
        database. Note that if any nodes or relationships in *subgraph* are not
        bound to remote counterparts, this method will return ``False``.

        :param subgraph: a :class:`.Node`, :class:`.Relationship` or other
                       :class:`.Subgraph`
        :returns: ``True`` if all entities exist remotely, ``False`` otherwise
        """
        try:
            return subgraph.__db_exists__(self)
        except __HOLE__:
            raise TypeError("No method defined to determine the existence of object %r" % subgraph)
dataset/ETHPy150Open nigelsmall/py2neo/py2neo/database/__init__.py/Transaction.exists