> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-chore-sync-comfy-api-v2-spec-a3d6e59.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Links

> Understand connection links in ComfyUI

## 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-chore-sync-comfy-api-v2-spec-a3d6e59/FJ4ac_GcYH6T55mk/images/interface/link/link_styles.jpg?fit=max&auto=format&n=FJ4ac_GcYH6T55mk&q=85&s=99a64ff03077ccc872cd69e9af2e34f6" alt="Link styles" width="1589" height="917" 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-chore-sync-comfy-api-v2-spec-a3d6e59/FJ4ac_GcYH6T55mk/images/interface/link/render_mode.jpg?fit=max&auto=format&n=FJ4ac_GcYH6T55mk&q=85&s=8b58f4a42512857bb2ec53ed4615474a" alt="Render mode setting" width="1066" height="764" 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-chore-sync-comfy-api-v2-spec-a3d6e59/FJ4ac_GcYH6T55mk/images/interface/link/canvas_menu.jpg?fit=max&auto=format&n=FJ4ac_GcYH6T55mk&q=85&s=1fa0a85e874015146673bc60ba49dc7b" alt="Canvas Menu" width="272" height="620" 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-chore-sync-comfy-api-v2-spec-a3d6e59/FJ4ac_GcYH6T55mk/images/interface/link/reroute.jpg?fit=max&auto=format&n=FJ4ac_GcYH6T55mk&q=85&s=2bf93425ef8a0757be92a2fff54f65bf" alt="ComfyUI Reroute node" width="900" height="365" 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-chore-sync-comfy-api-v2-spec-a3d6e59/FJ4ac_GcYH6T55mk/images/interface/link/native_reroute.jpg?fit=max&auto=format&n=FJ4ac_GcYH6T55mk&q=85&s=6c7a77bb6bb73c36a1cf7872f74e834a" alt="ComfyUI Native Reroute" width="463" height="315" 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-chore-sync-comfy-api-v2-spec-a3d6e59/rvP4Mx1MlmwiSfuX/images/concepts/node/data_type.jpg?fit=max&auto=format&n=rvP4Mx1MlmwiSfuX&q=85&s=f84cbd82fc7345f924c2c693b2228807" 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 |
