MCPcopy Create free account
hub / github.com/nodejs/node / filteredEdges

Method filteredEdges

deps/v8/tools/turbolizer/src/graph.ts:28–34  ·  view source on GitHub ↗
(func: (e: GraphEdge) => boolean)

Source from the content-addressed store, hash-verified

26 }
27
28 public *filteredEdges(func: (e: GraphEdge) => boolean) {
29 for (const node of this.nodes()) {
30 for (const edge of node.inputs) {
31 if (func(edge)) yield edge;
32 }
33 }
34 }
35
36 public forEachEdge(func: (e: GraphEdge) => void) {
37 for (const node of this.nodeMap) {

Callers 1

updateGraphVisibilityMethod · 0.80

Calls 2

nodesMethod · 0.95
funcFunction · 0.50

Tested by

no test coverage detected