[PR #15] [MERGED] RFC: Subgraph #12

Closed
opened 2026-10-26 22:01:22 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/rfcs/pull/15
Author: @webfiltered
Created: 1/16/2025
Status: ✅ Merged
Merged: 6/7/2025
Merged by: @webfiltered

Base: main ← Head: subgraph


📝 Commits (8)

📊 Changes

1 file changed (+340 additions, -0 deletions)

View changed files

➕ rfcs/0005-subgraph.md (+340 -0)

📄 Description

Summary

Subgraphs separate sections of workflows (graphs) into distinct, logical entities. This separation provides re-usability and modularity, and can drastically reduce visual and cognitive complexity.

  • A subgraph has its own inputs and outputs, which can be used to connect nodes on the parent graph to those in the subgraph.
  • Subgraphs added to a graph multiple times only need to be edited once to update all instances

Basic example

Simple design mock-ups.

Main workflow

A simple mock-up of the parent / primary workflow, as opened normally.

Parent workflow example

Subgraph

A simple mock-up of the contents of the subgraph, as displayed after opening.

Subgraph example


Important: Do NOT comment on this PR. Please use the discussion thread linked above to provide feedback, as it provides branched discussions that are easier to follow. This also makes the edit history of the PR clearer.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/rfcs/pull/15 **Author:** [@webfiltered](https://github.com/webfiltered) **Created:** 1/16/2025 **Status:** ✅ Merged **Merged:** 6/7/2025 **Merged by:** [@webfiltered](https://github.com/webfiltered) **Base:** `main` ← **Head:** `subgraph` --- ### 📝 Commits (8) - [`49ad958`](https://github.com/Comfy-Org/rfcs/commit/49ad9581cffba70d2c45dbaffa604fe4c40d2895) Add Subgraph RFC - [`576b2e0`](https://github.com/Comfy-Org/rfcs/commit/576b2e0c4dc2ac6a2e6121777f2d656748496ee0) Add image links - [`1a44ae3`](https://github.com/Comfy-Org/rfcs/commit/1a44ae387ad9bf8e165674c808e1cd90c59a347d) nit - Title - [`555094b`](https://github.com/Comfy-Org/rfcs/commit/555094bc592db04f2635d8fdbe5d4a10b4d3eb75) nit - [`677215b`](https://github.com/Comfy-Org/rfcs/commit/677215b1bc27abb7d7031d4b66392178bd53ff24) Change file location to match new action format - [`2a538bf`](https://github.com/Comfy-Org/rfcs/commit/2a538bfc72db27d9e48f6096ddb332fd5f5f5344) nit - [`58d217f`](https://github.com/Comfy-Org/rfcs/commit/58d217fb68a06e4fde01063a32eb4edc4131da9a) Set RFC number - [`6349f9a`](https://github.com/Comfy-Org/rfcs/commit/6349f9aa50e73526a8925ece3a4e1cfb4a2e4e09) Set target version ### 📊 Changes **1 file changed** (+340 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `rfcs/0005-subgraph.md` (+340 -0) </details> ### 📄 Description ## Summary Subgraphs separate sections of workflows (graphs) into distinct, logical entities. This separation provides re-usability and modularity, and can drastically reduce visual and cognitive complexity. - A subgraph has its own inputs and outputs, which can be used to connect nodes on the parent graph to those in the subgraph. - Subgraphs added to a graph multiple times only need to be edited once to update all instances ## Basic example Simple design mock-ups. ### Main workflow A simple mock-up of the parent / primary workflow, as opened normally. ![Parent workflow example](https://github.com/user-attachments/assets/255e5a43-fd7a-48b4-beb5-c9e8e09af4bd) ### Subgraph A simple mock-up of the contents of the subgraph, as displayed after opening. ![Subgraph example](https://github.com/user-attachments/assets/b765ef67-3ac3-4ba0-90ba-0465471b970f) ## Links <!-- Both links below will be automatically filled in when you create the PR. You do not need to modify this section. --> - [Full Rendered Proposal](https://github.com/Comfy-Org/rfcs/blob/subgraph/rfcs/0000-subgraph.md) - [Discussion Thread](https://github.com/Comfy-Org/rfcs/discussions/17) <!-- Optional: Include any additional links to related issues or resources below --> --- **Important: Do NOT comment on this PR. Please use the discussion thread linked above to provide feedback, as it provides branched discussions that are easier to follow. This also makes the edit history of the PR clearer.** --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 22:01:22 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/rfcs#12
No description provided.