(cfg)
| 355 | |
| 356 | export const splitQpsNode = (config, graph_name, node) => { |
| 357 | let splitNode = (cfg) => { |
| 358 | if (!cfg) return undefined; |
| 359 | let id = cfg.link.id; |
| 360 | let ports = Object.entries(node.qps).map(pair=>{ |
| 361 | return { id: `${id}#${pair[0]}`, descp: `${node.name}:${pair[0]}`, data: { size: pair[1][0], qps: pair[1][1] } }; |
| 362 | }); |
| 363 | return { id, is_block: node.is_block, ports }; |
| 364 | }; |
| 365 | let splitGraph = (cfg) => { |
| 366 | if (!cfg) return undefined; |
| 367 | let ids = []; |