MCPcopy Index your code
hub / github.com/python/cpython / _NodeInfo

Class _NodeInfo

Lib/graphlib.py:9–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9class _NodeInfo:
10 __slots__ = "node", "npredecessors", "successors"
11
12 def __init__(self, node):
13 # The node this class is augmenting.
14 self.node = node
15
16 # Number of predecessors, generally >= 0. When this value falls to 0,
17 # and is returned by get_ready(), this is set to _NODE_OUT and when the
18 # node is marked done by a call to done(), set to _NODE_DONE.
19 self.npredecessors = 0
20
21 # List of successor nodes. The list can contain duplicated elements as
22 # long as they're all reflected in the successor's npredecessors attribute.
23 self.successors = []
24
25
26class CycleError(ValueError):

Callers 1

_get_nodeinfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…