> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inworld.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Inworld Node Subgraph Node

[Overview](../overview) > [Inworld Node](./InworldNode) > Inworld Node Subgraph Node

**Class:** `UInworldNode_SubgraphNode` | **Inherits from:** `UInworldNode`

A node that executes another graph as a subgraph within the current graph. This node allows for modular graph design by embedding one graph asset within another. It manages the execution of the subgraph and handles data flow between the parent graph and the embedded subgraph. This enables graph reusability and complex hierarchical workflows.

<img src="https://mintcdn.com/inworldai/UjBJ5lUznbajzMw5/img/unreal/runtime/nd_img_InworldNode_SubgraphNode.png?fit=max&auto=format&n=UjBJ5lUznbajzMw5&q=85&s=8bce1ccc0318494a7007d22368322b90" alt="Inworld Node Subgraph Node" width="1" height="1" data-path="img/unreal/runtime/nd_img_InworldNode_SubgraphNode.png" />

## Methods

* [GetGraphAsset](#getgraphasset)
* [RefreshDetails](#refreshdetails)
* [SetGraphAsset](#setgraphasset)

## Reference

### GetGraphAsset

Retrieves the currently configured graph asset.

## Examples

```c++ theme={"system"}
UInworldGraphAsset* GetGraphAsset()
```

#### Returns

**Type:** `UInworldGraphAsset*`
**Description:** Pointer to the graph asset, or nullptr if none is set

***

### RefreshDetails

Refreshes the node's details based on the current graph asset. This function updates the description and runtime data requirements based on the currently set graph asset.

## Examples

```c++ theme={"system"}
void RefreshDetails()
```

***

### SetGraphAsset

Sets the graph asset to be used as a subgraph.

## Examples

```c++ theme={"system"}
void SetGraphAsset()
```

***
