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

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

Adds vertices with no edges.

**Signature:**

```typescript
addVertex(...vertex: T[]): Graph<T>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| vertex | T\[\] | Vertices to add. |


**Returns:**

[Graph](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.graph/)<T>

This graph, for chaining.

## Remarks

Not idempotent: a vertex that is already present has its edges RESET, so guard with [Graph.hasVertex()](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.graph.hasvertex/) when a vertex may already be there. Adding an edge from an unknown vertex adds it for you, which is the usual way one appears.

