MCPcopy Index your code
hub / github.com/nodejs/node / Visit

Function Visit

tools/gyp/pylib/gyp/common.py:686–696  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

684 ordered_nodes = []
685
686 def Visit(node):
687 if node in visiting:
688 raise CycleError(visiting)
689 if node in visited:
690 return
691 visited.add(node)
692 visiting.add(node)
693 for neighbor in get_edges(node):
694 Visit(neighbor)
695 visiting.remove(node)
696 ordered_nodes.insert(0, node)
697
698 for node in sorted(graph):
699 Visit(node)

Callers 3

VisitMethod · 0.85
FindCyclesMethod · 0.85
TopologicallySortedFunction · 0.85

Calls 4

CycleErrorClass · 0.85
addMethod · 0.65
removeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…