# Direction

`import { Direction } from "destack:topology";`

Direction selector for directional relationships.

```ds title="Direction"
export enum Direction {
    Ingress = 1,
    Egress = 2,
    Both = 3,
}
```

[language/library/src/topology/edge.ds:19:26](https://github.com/destack-sh/destack/blob/main/language/library/src/topology/edge.ds#L19-L26)

## Variants

### `Ingress = 1`

Affect ingress traffic.

### `Egress = 2`

Affect egress traffic.

### `Both = 3`

Affect both directions.
