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

Method updateExecutionOrder

src/LGraph.ts:522–530  ·  view source on GitHub ↗

* Updates the graph execution order according to relevance of the nodes (nodes with only outputs have more relevance than * nodes with only inputs.

()

Source from the content-addressed store, hash-verified

520 * nodes with only inputs.
521 */
522 updateExecutionOrder(): void {
523 this._nodes_in_order = this.computeExecutionOrder(false)
524 this._nodes_executable = []
525 for (const node of this._nodes_in_order) {
526 if (node.onExecute) {
527 this._nodes_executable.push(node)
528 }
529 }
530 }
531
532 // This is more internal, it computes the executable nodes in order and returns it
533 computeExecutionOrder(

Callers 4

addMethod · 0.95
removeMethod · 0.95
checkNodeTypesMethod · 0.95
configureMethod · 0.95

Calls 1

computeExecutionOrderMethod · 0.95

Tested by

no test coverage detected