# Directed Acyclic Graph (DAG)

## &#x20;Overview

* The Directed Acyclic Graph (DAG) is a useful tool for checking and understanding data models. By representing your data model as a DAG, you can easily visualize relationships, dependencies, and the overall structure of your data.&#x20;

<figure><img src="/files/OY6rlAKcm1arStwDq5dt" alt=""><figcaption></figcaption></figure>

* To open, click on the main page of Data then click on the Graph tab on the left menu sidebar.

<figure><img src="/files/uCXRNpvAD13csNjCeyfT" alt=""><figcaption></figcaption></figure>

* The DAG will display the data model showing relationships between them.
* Click the Editor tab to come back to the main Data page if the left side menu is closed.

## Customize the DAG&#x20;

<figure><img src="/files/IlQQYSKuhwmZB4P0Gwb6" alt="" width="563"><figcaption></figcaption></figure>

* The icons on the left will help you check or customize your DAG.
* On the bottom right is the mini map for the DAG.

<figure><img src="/files/EiaAUlHLL5gIxXL8vkBO" alt="" width="563"><figcaption></figcaption></figure>

* You can add any content just like the [AI Text note](/docs/dashboard/widget-types/ai-text-note.md) widget.

<figure><img src="/files/5BZI2PSw1ShQ8qIoYUiM" alt="" width="327"><figcaption></figcaption></figure>

* You can change the Orientation or turn ON / OFF the mini map.

***

<figure><img src="/files/E4HdJTy80NSVZlJJanQ6" alt=""><figcaption></figcaption></figure>

* Any actions that change the position of date models will activate the Save button. You should click it if you have done customizing your DAG.
* Click the Discard button to revert it back.

{% hint style="info" %}
Member(s) of the Team can change the position but can not save change.
{% endhint %}

## Customize the Data model(s)

<figure><img src="/files/sYw6ClLcYejHBLj6ZFo9" alt=""><figcaption></figcaption></figure>

* Click on the data model will display a list of options for customization.

<figure><img src="/files/9XZMq7siAHtqTVTh5UCB" alt=""><figcaption></figcaption></figure>

* Click on the Color dropdown and select any available color to change it.

<figure><img src="/files/Yj7GYXksDIbXNAMh0ueB" alt=""><figcaption></figcaption></figure>

Click on the Rename button to quickly rename the data model.

<figure><img src="/files/JnzOaXIe5vbves1G0sKO" alt=""><figcaption></figcaption></figure>

* You can also add the Description of the data model here.
* Click the X button on the Description to remove it.

<figure><img src="/files/d0IFCYTe25n4hAK5FeRc" alt=""><figcaption></figcaption></figure>

* You can quickly open the data model details page on the main Data page.

## &#x20;Check any error data model

<figure><img src="/files/WpOHV1lEWwzwQylByZf0" alt=""><figcaption></figcaption></figure>

* If there is any incorrect data model, you can check the issues section to locate it quickly.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://endash-guidance-docs.gitbook.io/docs/data/directed-acyclic-graph-dag.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
