# computeNetworkLayout

Canonical: https://docs.shumoku.dev/ja/library/api/computeNetworkLayout
Language: ja

@shumoku/core · 0.4.0 · function

# computeNetworkLayout

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/unified-engine.ts#L53)

APIの説明は英語のcanonical sourceを表示しています。

Compute layout and return both ResolvedLayout and legacy LayoutResult. Use this when you need both (e.g., renderer-svg uses ResolvedLayout directly).

```
computeNetworkLayout(graph: NetworkGraph, options?: { composite?: boolean; compound?: boolean }): Promise<{ layout: LayoutResult; resolved: ResolvedLayout }>
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `graph` | `NetworkGraph` | 追加説明はありません。 | `—` |
| `options` | `{ composite?: boolean; compound?: boolean }` | 追加説明はありません。 | `{}` |

## 戻り値

```
Promise<{ layout: LayoutResult; resolved: ResolvedLayout }>
```

[`libs/@shumoku/core/src/layout/unified-engine.ts:53`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/unified-engine.ts#L53)
