MCPcopy Create free account
hub / github.com/Comfy-Org/litegraph.js / resolveSubgraphOutputLink

Method resolveSubgraphOutputLink

src/subgraph/SubgraphNode.ts:306–312  ·  view source on GitHub ↗

* Finds the internal link connected to the given output slot inside the subgraph, and resolves the nodes / slots. * @param slot The slot index * @returns The output node if found, otherwise undefined.

(slot: number)

Source from the content-addressed store, hash-verified

304 * @returns The output node if found, otherwise undefined.
305 */
306 resolveSubgraphOutputLink(slot: number): ResolvedConnection | undefined {
307 const outputSlot = this.subgraph.outputNode.slots[slot]
308 const innerLink = outputSlot.getLinks().at(0)
309 if (innerLink) return innerLink.resolve(this.subgraph)
310
311 console.debug(`[SubgraphNode.resolveSubgraphOutputLink] No inner link found for output slot [${slot}] ${outputSlot.name}`, this)
312 }
313
314 /** @internal Used to flatten the subgraph before execution. */
315 getInnerNodes(

Callers 2

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected