# linkExists

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

@shumoku/core · 0.4.0 · function

# linkExists

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

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

Check if a link already exists between two ports.

```
linkExists(links: Link[], fromNodeId: string, fromPort: string, toNodeId: string, toPort: string): boolean
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `links` | `Link[]` | 追加説明はありません。 | `—` |
| `fromNodeId` | `string` | 追加説明はありません。 | `—` |
| `fromPort` | `string` | 追加説明はありません。 | `—` |
| `toNodeId` | `string` | 追加説明はありません。 | `—` |
| `toPort` | `string` | 追加説明はありません。 | `—` |

## 戻り値

```
boolean
```

[`libs/@shumoku/core/src/layout/interaction.ts:548`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/interaction.ts#L548)
