(nodeId: string, depth: number, graph: Dagre.Graph, registry: ZapRegistry)
| 232 | } |
| 233 | |
| 234 | function zapVisit(nodeId: string, depth: number, graph: Dagre.Graph, registry: ZapRegistry) { |
| 235 | if (registry.has(nodeId)) { |
| 236 | return; |
| 237 | } else { |
| 238 | const node: StreamGraphNode = graph.node(nodeId); |
| 239 | if (node.type !== 'operator') { |
| 240 | registry.register(nodeId, node.stream, depth); |
| 241 | } |
| 242 | const successors: Array<string> = graph['successors'](nodeId); |
| 243 | successors.forEach(id => { |
| 244 | zapVisit(id, depth + 1, graph, registry); |
| 245 | }); |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | function makeObjectifyGraph(id$: Stream<string>) { |
| 250 | return function objectifyGraph(diagram$: Stream<Diagram>): Stream<Object> { |
no test coverage detected