@shumoku/core · 0.4.0 · function
groupCouplingPairs
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[] }[]