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

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

Whether any path in this graph leads back to where it started.

**Signature:**

```typescript
isCycled(): boolean;
```
**Returns:**

boolean

`true` when the graph contains a cycle.

## Remarks

Checks from every vertex, so a cycle in a part of the graph nothing else reaches is still found. A self-edge counts. For model associations this is the question that matters: a cycle is an `include` chain that can be asked to include itself.

