# Graph.hasEdge() method · @imqueue/pg-sequelize

Source: https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.graph.hasedge/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-sequelize 4.2.0 — generated reference, not hand-written

Whether one vertex points at another.

**Signature:**

```typescript
hasEdge(vertex: T, edge: T): boolean;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| vertex | T | Vertex the edge would start from. |
| edge | T | Vertex it would point at. |


**Returns:**

boolean

`true` when that edge is present.

## Remarks

Directed, so the order of the arguments matters: this asks about an edge from `vertex` to `edge` and says nothing about the other direction.

