# buildChildSheetGraph

Canonical: https://docs.shumoku.dev/en/library/api/buildChildSheetGraph
Language: en

@shumoku/core · 0.4.0 · function

# buildChildSheetGraph

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/hierarchical.ts#L132)

Build a sub-sheet \`NetworkGraph\` for the given subgraph id — the filtered nodes/subgraphs/links plus export-connector nodes that represent cross-boundary links. This is the layout-free half of what \`buildHierarchicalSheets\` does per subgraph. Callers that want to run their own layout engine (e.g. the interactive editor, which already owns a \`computeNetworkLayout\` path) can use this directly and skip the \`LayoutEngine\` indirection. Returns \`null\` when the requested subgraph isn't in \`rootGraph\`.

```
buildChildSheetGraph(rootGraph: NetworkGraph, subgraphId: string): NetworkGraph | null
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `rootGraph` | `NetworkGraph` | No additional description. | `—` |
| `subgraphId` | `string` | No additional description. | `—` |

## Returns

```
NetworkGraph | null
```

[`libs/@shumoku/core/src/hierarchical.ts:132`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/hierarchical.ts#L132)
