AV ComfyUI Manual
03 / 64
Files
03
PART I · WORKFLOW ENGINEERING FOR COMFYUI

Graph Literacy — learn to read patterns, not isolated nodes

After Node Literacy, the next step is to stop seeing a workflow as a collection of individual blocks. Graph Literacy teaches you to recognize recurring patterns, branches, merge points, selectors and data routes as sentences in the language of the graph.

CONFIRMEDThis chapter describes general graph patterns and uses the same route types that appear in the current Hansen workflow.
01 · PATTERNS

A node is a letter; a chain of nodes is a construction

In a large workflow, you rarely need to memorize every node individually. What matters is recognizing standard routes: model loading, prompt encoding, sampling, decode, preprocessing, segmentation, compositing and output.

Once these constructions become familiar, a graph with hundreds of nodes visually compresses into a handful of understandable systems.

02 · DATA PLANE

Find the main data path first

The data plane is the route followed by the large objects: IMAGE, LATENT, MASK, CONDITIONING and MODEL. When reading an unfamiliar graph, start with the primary IMAGE/LATENT route from input to output and inspect the smaller controls later.

This quickly reveals where generation happens, where local processing happens, and where the graph is only controlling parameters.

03 · BRANCH / MERGE

Fan-out and fan-in reveal the architecture of the task

Fan-out occurs when one source is reused by several branches: for example, a base image may feed Depth, Canny, segmentation and preview at the same time. Fan-in occurs when several results converge again in a composite, selector or conditioning stack.

These are important architectural points: fan-out reveals source reuse, while fan-in shows where independent decisions become a single result.

PatternWhat it looks likeWhat it means
Fan-out1 output → several inputsOne source feeds several branches
Fan-inSeveral outputs → one operationResults / controls are merged
Serial chainA → B → C → DSequential transformation
Parallel branchesA → B1 and A → B2Independent alternative or supporting processes
04 · ROUTING

A selector changes the route, not necessarily the data

Routing nodes can look secondary, but they often define the actual runtime path. A selector may have several prepared inputs while forwarding only one of them downstream.

A connection in the topology therefore does not prove that a branch contributes to the current result. Keep three states separate: connected, selected and executed.

StateMeaning
CONNECTEDThe branch is physically connected to the graph
SELECTEDThe selector is currently choosing this input
EXECUTEDThe branch is not bypassed and is required by the current output
DIAGNOSTICThe result is used only by a preview / comparer
06 · MODULE BOUNDARIES

A module boundary is defined by the meaning of its input and output

A module does not have to be an official ComfyUI subgraph node. In engineering terms, a module is a complete branch with one responsibility and a clear contract.

A well-designed module can be mentally cut out of the Master Workflow, fed with test inputs, and validated independently through its output.

07 · TRACE METHOD

How to trace a branch through a large graph

  • Start from the final preview/save/output of the branch you are investigating.
  • Move upstream through IMAGE/LATENT links until you reach a source you understand.
  • List MASK / CONDITIONING / MODEL inputs separately.
  • Find selectors and verify which input is actually selected.
  • Find linked INT/FLOAT/STRING controls that change branch behavior.
  • Mark the final checkpoint before the branch merges with other systems.
08 · PRACTICE

Practice: compress a large graph into five sentences

Open a large workflow and resist the urge to understand every node immediately. Identify five major constructions and write them as short routes. For example: Input → ControlNet → SDXL; SDXL → Detail; PPL Generate → Segment → Composite; Result → FLUX; FLUX → Output.

INFERRED

Readiness criterion

If you can explain the architecture of a graph in 5–10 routes without listing hundreds of nodes, you are ready to move on to BASE CONFIG and the control plane.