(func = (n: GraphNode) => true)
| 19 | } |
| 20 | |
| 21 | public *nodes(func = (n: GraphNode) => true) { |
| 22 | for (const node of this.nodeMap) { |
| 23 | if (!node || !func(node)) continue; |
| 24 | yield node; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | public *filteredEdges(func: (e: GraphEdge) => boolean) { |
| 29 | for (const node of this.nodes()) { |
no test coverage detected