# TopologicalOrderResult

> **TopologicalOrderResult** = { `acyclic`: `true`; `order`: `Int32Array`; } | { `acyclic`: `false`; `cycle`: `Int32Array`; }

Defined in: [packages/graph/src/topological-order.ts:9](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/graph/src/topological-order.ts#L9)

A topological order, or the directed cycle that rules one out. Exactly one of the two answers holds, and `acyclic` says which.

## Union Members

### Type Literal

{ `acyclic`: `true`; `order`: `Int32Array`; }

#### acyclic

> `readonly` **acyclic**: `true`

#### order

> `readonly` **order**: `Int32Array`

Every vertex, each after all of its predecessors.

***

### Type Literal

{ `acyclic`: `false`; `cycle`: `Int32Array`; }

#### acyclic

> `readonly` **acyclic**: `false`

#### cycle

> `readonly` **cycle**: `Int32Array`

The vertices of one directed cycle in walk order: each has an edge to the next, and the last to the first.
