# groupCouplingPairs

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

@shumoku/core · 0.4.0 · function

# groupCouplingPairs

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

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

Union-find grouping of coupling pairs into redundancy groups (an N-member stack is a chain of pair links). Generic over ids so both renderers can feed their edge shapes in. \`kind\` of the group = the first pair's kind.

```
groupCouplingPairs(pairs: { a: string; b: string; kind?: string }[]): { kind?: string; members: string[] }[]
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `pairs` | `{ a: string; b: string; kind?: string }[]` | 追加説明はありません。 | `—` |

## 戻り値

```
{ kind?: string; members: string[] }[]
```

[`libs/@shumoku/core/src/layout/ha-hull.ts:230`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/ha-hull.ts#L230)
