> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-codex-simplify-get-started.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Links

> Understand connection links in ComfyUI

## Links connect nodes

The lines between nodes are **links**, also called connections. They carry the output of one step into the input of another. Follow them to see how a prompt, model, or image reaches the final output. For a first tour of the canvas, see [How ComfyUI works](/get_started/how-comfyui-works).

The sections below explain display styles, reroutes, and connection types in more detail.

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

<img src="https://mintcdn.com/dripart-codex-simplify-get-started/78-W2QRiam9hlqmv/images/interface/link/link_styles.jpg?fit=max&auto=format&n=78-W2QRiam9hlqmv&q=85&s=acd7602a11cd75d1d39ebbbf88faef0a" 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-codex-simplify-get-started/78-W2QRiam9hlqmv/images/interface/link/render_mode.jpg?fit=max&auto=format&n=78-W2QRiam9hlqmv&q=85&s=c03beb96fe9c4c32c2aa2f4436dece31" 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-codex-simplify-get-started/78-W2QRiam9hlqmv/images/interface/link/canvas_menu.jpg?fit=max&auto=format&n=78-W2QRiam9hlqmv&q=85&s=6f91270ac16ff4cd3ddb8daf88044fda" 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-codex-simplify-get-started/78-W2QRiam9hlqmv/images/interface/link/reroute.jpg?fit=max&auto=format&n=78-W2QRiam9hlqmv&q=85&s=9686fc359dcf1faedd7dd0e2b5b1a38b" 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-codex-simplify-get-started/78-W2QRiam9hlqmv/images/interface/link/native_reroute.jpg?fit=max&auto=format&n=78-W2QRiam9hlqmv&q=85&s=3091d769b4dfa0c14932f11fde71f6ec" 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-codex-simplify-get-started/VAVK5xegp62x4Hhp/images/concepts/node/data_type.jpg?fit=max&auto=format&n=VAVK5xegp62x4Hhp&q=85&s=34037b92e0a00abe1d69232df46e8fa5" 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 |
