# readNetworkModel

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

@shumoku/core · 0.4.2 · function

# readNetworkModel

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

Reads the YAML people write into a model that holds it as its configuration. A network that cannot be read as written throws a \`NetworkInputError\` listing every issue in it.

```
readNetworkModel(text: string): NetworkModel
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `text` | `string` | No additional description. | `—` |

## Returns

```
NetworkModel
```

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