示例#1
0
 def getOutgoingEdges(self, limit=None):
     """
     Get a list all edges for the current node
     @return A list of Edge instances.
     """
     (startKey, endKey) = Edge._getOutgoingEdgesScanKeys(self.id)
     return self.graph._scanEdges(startKey, endKey, limit)
示例#2
0
 def getOutgoingEdges(self, limit=None):
     """
     Get a list all edges for the current node
     @return A list of Edge instances.
     """
     (startKey, endKey) = Edge._getOutgoingEdgesScanKeys(self.id)
     return self.graph._scanEdges(startKey, endKey, limit)
示例#3
0
 def outdegree(self):
     """
     @return The indegree (as int) of the node
     """
     (startKey, endKey) = Edge._getOutgoingEdgesScanKeys(self.id)
     return self.graph._countEdges(startKey, endKey)
示例#4
0
 def outdegree(self):
     """
     @return The indegree (as int) of the node
     """
     (startKey, endKey) = Edge._getOutgoingEdgesScanKeys(self.id)
     return self.graph._countEdges(startKey, endKey)