# EGraphExpression

Defined in: [packages/e-graph/src/extract.ts:5](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/e-graph/src/extract.ts#L5)

A finite expression. Repeated children can share the same result object.

## Type Parameters

### Op

`Op` *extends* `string`

## Properties

### operator

> `readonly` **operator**: `Op`

Defined in: [packages/e-graph/src/extract.ts:6](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/e-graph/src/extract.ts#L6)

***

### children

> `readonly` **children**: readonly `EGraphExpression`<`Op`>\[]

Defined in: [packages/e-graph/src/extract.ts:7](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/e-graph/src/extract.ts#L7)

***

### cost

> `readonly` **cost**: `number`

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

Local operator cost plus the cost of each child occurrence in order.
