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