# toNetworkGraph

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

@shumoku/core · 0.4.2 · function

# toNetworkGraph

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/models/network-model-graph.ts#L76)

Builds the graph that layout and the renderers draw from the configuration and its layers. Sources are not read: Server merges them into the configuration first.

```
toNetworkGraph(model: NetworkModel): NetworkGraph
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `model` | `NetworkModel` | No additional description. | `—` |

## Returns

```
NetworkGraph
```

[`libs/@shumoku/core/src/libs/@shumoku/core/src/models/network-model-graph.ts:76`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/models/network-model-graph.ts#L76)
