(func: (e: GraphEdge) => boolean)
| 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) { |
no test coverage detected