> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-willie-des-1087-router-migration-block.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ComfyUI Links: How Node Connections Work

> Learn how links connect nodes in ComfyUI, how to change link render styles, and how the Reroute node keeps complex workflows readable.

## Links connect nodes

In ComfyUI, the lines or curves drawn between nodes are called ***links*** (also referred to as ***connections*** or wires). They carry data from one node's output to another node's input, defining the flow of your workflow.

Links can be displayed in several visual styles: curves, right angles, straight lines, or hidden entirely.

<img src="https://mintcdn.com/dripart-willie-des-1087-router-migration-block/Vdka5-wdArwvYsSJ/images/interface/link/link_styles.jpg?fit=max&auto=format&n=Vdka5-wdArwvYsSJ&q=85&s=ae1b17d5d55bd6b2dc8c3affc5cba6a4" alt="Link styles" width="1589" height="895" data-path="images/interface/link/link_styles.jpg" />

To change the link style, go to **Setup Menu** → **Display (Lite Graph)** → **Graph** → **Link Render Mode**.

<img src="https://mintcdn.com/dripart-willie-des-1087-router-migration-block/Vdka5-wdArwvYsSJ/images/interface/link/render_mode.jpg?fit=max&auto=format&n=Vdka5-wdArwvYsSJ&q=85&s=3050215a330a2ac99b78f1203625731d" alt="Render mode setting" width="1280" height="800" data-path="images/interface/link/render_mode.jpg" />

You can also temporarily hide all links from the **Canvas Menu**.

<img src="https://mintcdn.com/dripart-willie-des-1087-router-migration-block/Vdka5-wdArwvYsSJ/images/interface/link/canvas_menu.jpg?fit=max&auto=format&n=Vdka5-wdArwvYsSJ&q=85&s=569fd187b0a02805f5a8cc5b08495fa1" alt="Canvas Menu" width="429" height="105" data-path="images/interface/link/canvas_menu.jpg" />

<Tip>
  Showing links is especially useful when learning, sharing, or debugging a workflow. They make the data flow visible at a glance. For finished workflows that aren't meant to be edited, hiding links can reduce visual clutter.
</Tip>

### Reroute node

When a workflow becomes complex, link wires can overlap or pass behind nodes, making it hard to read. The **Reroute** node lets you manually redirect a wire through any point in the 2D graph space, keeping the layout clean and legible.

<img src="https://mintcdn.com/dripart-willie-des-1087-router-migration-block/Vdka5-wdArwvYsSJ/images/interface/link/reroute.jpg?fit=max&auto=format&n=Vdka5-wdArwvYsSJ&q=85&s=95b6bec0582c5736c99016e3ab40690f" alt="ComfyUI Reroute node" width="1345" height="895" data-path="images/interface/link/reroute.jpg" />

ComfyUI also has a built-in native reroute feature in the graph canvas. We recommend using this for new workflows.

<img src="https://mintcdn.com/dripart-willie-des-1087-router-migration-block/Vdka5-wdArwvYsSJ/images/interface/link/native_reroute.jpg?fit=max&auto=format&n=Vdka5-wdArwvYsSJ&q=85&s=30ab2e0b64a8c218bc2972db6b9071d2" alt="ComfyUI Native Reroute" width="1395" height="750" data-path="images/interface/link/native_reroute.jpg" />

## Color-coding

Every data type in ComfyUI has a distinct color. Node input and output ports, as well as the link wires connecting them, all share this color scheme. **You can only connect ports of the same color**. This ensures type safety across your workflow.

<img src="https://mintcdn.com/dripart-willie-des-1087-router-migration-block/Bkbx49ygEByWWYgK/images/concepts/node/data_type.jpg?fit=max&auto=format&n=Bkbx49ygEByWWYgK&q=85&s=ef46e9e26657a5aa9afc43112195437f" alt="ComfyUI Node Data Types" width="685" height="356" data-path="images/concepts/node/data_type.jpg" />

| Data type                 | Color        |
| ------------------------- | ------------ |
| Diffusion model           | Lavender     |
| CLIP model                | Yellow       |
| VAE model                 | Rose         |
| Conditioning              | Orange       |
| Latent Image              | Pink         |
| Pixel image               | Blue         |
| Mask                      | Green        |
| Number (integer or float) | Gray         |
| Mesh                      | Bright green |
