示例#1
0
    def get_inV(self):
        """
        Returns the ID of the edge's incoming vertex (end node).

        :rtype: int

        """
        _inV = self.data.get("_inV")
        return coerce_id(_inV)
示例#2
0
    def get_outV(self):
        """
        Returns the ID of the edge's outgoing vertex (start node).

        :rtype: int

        """
        _outV = self.data.get("_outV")
        return coerce_id(_outV)
示例#3
0
    def get_inV(self):
        """
        Returns the ID of the edge's incoming vertex (end node).

        :rtype: int

        """
        _inV = self.data.get('_inV')
        return coerce_id(_inV)
示例#4
0
    def get_outV(self):
        """
        Returns the ID of the edge's outgoing vertex (start node).

        :rtype: int

        """
        _outV = self.data.get('_outV')
        return coerce_id(_outV)
示例#5
0
    def get_id(self):
        """
        Returns the element ID.

        :rtype: int or str

        """
        _id = self.data["_id"]

        # OrientDB uses string IDs
        return coerce_id(_id)
示例#6
0
    def get_id(self):
        """
        Returns the element ID.

        :rtype: int or str

        """
        _id = self.data['_id']

        # OrientDB uses string IDs
        return coerce_id(_id)
示例#7
0
文件: client.py 项目: nicholsn/bulbs
    def get_id(self):
        """Returns the element ID."""
        _id = self.data['_id']

        # OrientDB uses string IDs
        return coerce_id(_id)