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)
def outdegree(self): """ @return The indegree (as int) of the node """ (startKey, endKey) = Edge._getOutgoingEdgesScanKeys(self.id) return self.graph._countEdges(startKey, endKey)