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

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

Whether a vertex is in this graph.

**Signature:**

```typescript
hasVertex(vertex: T): boolean;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| vertex | T | Vertex to look for. |


**Returns:**

boolean

`true` when the graph holds it.

## Remarks

By identity, since vertices are `Map` keys. A vertex that is only pointed at by an edge and never added is not in the graph.

