Subgraph Operations

In ATOM, subgraphs are composed of multiple operators. Users can generate and name these operator combinations in different scenarios to improve the reusability of the combined operators and the efficiency of graph construction.

How to Create a Subgraph

In an existing graph, you can freely select multiple operators.

  1. Hold down the Ctrl key and click the operators you want to select. The selected operator names will turn yellow.

  2. After selection, right-click to open the context menu and create the subgraph.

  3. In the pop-up window, name the subgraph to create it.

    operations operator create subgraph
The generated subgraph will be displayed on the current canvas. This subgraph is only valid for the current graph file. If you need to apply it globally, please save it as a custom subgraph.

How to Save as a Custom Subgraph

Custom subgraphs help you use operator combinations in a global state. Follow these steps:

  1. Find the subgraph you want to save as custom in the current canvas, right-click to open the menu, select "Generate Custom Subgraph" and complete the naming.

  2. Click the Subgraph option in the left menu bar, find the subgraph with the corresponding name, and drag it to the canvas to use it.

Edit Subgraph

Both generated subgraphs and saved custom subgraphs can be edited. However, editing only affects the subgraph in the canvas and does not affect the originally saved custom subgraph. Follow these steps:

  1. Click the top-left corner of the generated subgraph or customized subgraph operations edit to enter the subgraph for editing.

  2. You can enable the mapping of the operator’s input or output parameters, then return to the operator graph layer to display the input and output nodes within the subgraph.

operations edit subgraph

Delete a Subgraph or Customized Subgraph

To delete a subgraph from the canvas, right-click to open the context menu and select delete. Follow the pop-up prompts to delete it.

To delete a customized global subgraph, click the subgraph section in the left sidebar, right-click the custom subgraph you want to delete, and follow the pop-up prompts to delete it.