MCPcopy
hub / github.com/dmlc/dgl / out_degrees

Method out_degrees

python/dgl/graph_index.py:546–560  ·  view source on GitHub ↗

Return the out degrees of the nodes. Parameters ---------- v : utils.Index The nodes. Returns ------- tensor The out degree array.

(self, v)

Source from the content-addressed store, hash-verified

544 return _CAPI_DGLGraphOutDegree(self, int(v))
545
546 def out_degrees(self, v):
547 """Return the out degrees of the nodes.
548
549 Parameters
550 ----------
551 v : utils.Index
552 The nodes.
553
554 Returns
555 -------
556 tensor
557 The out degree array.
558 """
559 v_array = v.todgltensor()
560 return utils.toindex(_CAPI_DGLGraphOutDegrees(self, v_array))
561
562 def node_subgraph(self, v):
563 """Return the induced node subgraph.

Callers

nothing calls this directly

Calls 1

todgltensorMethod · 0.80

Tested by

no test coverage detected