* Destroys a link
(link_id: LinkId)
| 1372 | * Destroys a link |
| 1373 | */ |
| 1374 | removeLink(link_id: LinkId): void { |
| 1375 | const link = this._links.get(link_id) |
| 1376 | if (!link) return |
| 1377 | |
| 1378 | const node = this.getNodeById(link.target_id) |
| 1379 | node?.disconnectInput(link.target_slot, false) |
| 1380 | |
| 1381 | link.disconnect(this) |
| 1382 | } |
| 1383 | |
| 1384 | /** |
| 1385 | * Creates a new subgraph definition, and adds it to the graph. |
no test coverage detected