# Module /web/app/graph

Filesystem-driven application route graph (App-Graph) for breadcrumbs, navigation trails, and static site crawling.

```tangu
(use /web/app/graph)
```

## Structs

### App-Graph

`Struct` in `/web/app/graph`

Application route and navigation graph holding a hierarchy spec and fast path index.

| Field | Type | Default | Notes |
| :--- | :--- | :--- | :--- |
| `spec` | `Any` | `—` | — |
| `index` | `Any` | `—` | — |

## Constants

### App-Node

`Constant (Any)`

Type alias representing a single normalized node in an `App-Graph`.

## Functions & symbols

### construct-app-graph-from-fs

`(construct-app-graph-from-fs ...params)`

Construct an App-Graph from html.tan files and sidecar metadata.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `params` | `Any` | yes | — |

### get-trail

`(get-trail graph path vars)`

Returns the breadcrumb trail of ancestor nodes from root down to `path`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `graph` | `Any` | no | — |
| `path` | `Any` | no | — |
| `vars` | `Any` | no | — |

### graph-to-assoc

`(graph-to-assoc graph)`

Converts an `App-Graph` index into a `{path handler}` map suitable for `route-map`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `graph` | `Any` | no | — |

### make-app-graph

`(make-app-graph spec)`

Construct a graph from a spec tree.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `spec` | `Any` | no | — |
