예제 #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)