# mt graph

`mt graph` prints the dependency edges that `ready` and `blocked` read, as Graphviz DOT or Mermaid. Each node shows a task’s title and status, colored by whether the task is ready. [Task links](https://mlavrinenko.github.io/mindtape/links/index.md) describes the edge kinds.

Draw tasks and the links between them, as Graphviz DOT or Mermaid

Runs on one project and refuses a [set](https://mlavrinenko.github.io/mindtape/read-many-projects/index.md).

- `[FILTER]`: Which tasks to draw, as a filter expression
  Without it, mt draws every task. Links to tasks the filter leaves out aren't drawn.
- `--format <FORMAT>`: Output format
  - `dot`: Graphviz DOT
  - `mermaid`: A Mermaid flowchart`default: dot`
- `--json`: Print the nodes and typed edges as JSON, instead of drawing them
- `--no-terminal`: Leave out closed tasks, such as done or cancelled ones

```sh
mt graph                                # every task, Graphviz DOT
mt graph '!terminal' --format mermaid   # the open tasks as a Mermaid flowchart
```

Every command also takes the [global flags](https://mlavrinenko.github.io/mindtape/cli/index.md#global-flags).
