(componentName: string, key: string, graphReducer: GraphReducer)
| 181 | } |
| 182 | |
| 183 | computeNodeWeight(componentName: string, key: string, graphReducer: GraphReducer): Weight { |
| 184 | const node = this.getNode(componentName, key); |
| 185 | if (node) { |
| 186 | return this.computeWeightForNodes(componentName, [node], graphReducer); |
| 187 | } |
| 188 | return graphReducer.result(); |
| 189 | } |
| 190 | |
| 191 | /** Computes weight for a list of nodes, aggregating and returning result from graph reducer. */ |
| 192 | computeWeightForNodes(componentName: string, queue: Node[], graphReducer: GraphReducer): Weight { |
no test coverage detected