> For the complete documentation index, see [llms.txt](https://endash-guidance-docs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://endash-guidance-docs.gitbook.io/docs/data/directed-acyclic-graph-dag.md).

# 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="https://1608311007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSr8m3Ldc2W7Qqq1jsjgC%2Fuploads%2FFj5UdZcthE0PjW3zjPgK%2FScreenshot_2.png?alt=media&amp;token=c5bcc2db-0cbd-44ae-81fb-7af567eb1e03" 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="https://1608311007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSr8m3Ldc2W7Qqq1jsjgC%2Fuploads%2F04pfV3PmUiDHhthAUH8h%2Fimage.png?alt=media&amp;token=ebd00ef7-5608-4a8d-868d-f7df2862fade" 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="https://1608311007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSr8m3Ldc2W7Qqq1jsjgC%2Fuploads%2FXvzlFj0HyBxMFk6YiW63%2Fimage.png?alt=media&amp;token=cdb50f52-fdae-4861-9471-40b5516d1143" 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="https://1608311007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSr8m3Ldc2W7Qqq1jsjgC%2Fuploads%2FRDd1KP0NttJV4Z5BTzgs%2Fimage.png?alt=media&amp;token=f77c542b-c5a3-4bcd-86ff-0e60eb96e40f" 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="https://1608311007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSr8m3Ldc2W7Qqq1jsjgC%2Fuploads%2FC0PpZpAYzuOspgunJBvo%2Fimage.png?alt=media&amp;token=52d0209b-349c-415a-a781-bc150842e439" alt="" width="327"><figcaption></figcaption></figure>

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

***

<figure><img src="https://1608311007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSr8m3Ldc2W7Qqq1jsjgC%2Fuploads%2FS9zVlXFuqMhuwXMRfK7e%2Fimage.png?alt=media&amp;token=b57353d1-3e7e-440d-a159-a8d954cbf860" 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="https://1608311007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSr8m3Ldc2W7Qqq1jsjgC%2Fuploads%2FD9dRgcYWoggpLUEn2g24%2Fimage.png?alt=media&amp;token=80c4b7b6-5e8d-49e6-8e3e-0ebd84bf231a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1608311007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSr8m3Ldc2W7Qqq1jsjgC%2Fuploads%2F8rV0BYjJav17TZQjr0cV%2Fimage.png?alt=media&amp;token=65ab7a7d-d8ad-4d5e-901d-996c4c2a7662" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1608311007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSr8m3Ldc2W7Qqq1jsjgC%2Fuploads%2FBfBB66y5hysdb3fjOjoy%2Fimage.png?alt=media&amp;token=ae4f9f82-e7fc-4b9d-95bf-f7464f431dbb" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1608311007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSr8m3Ldc2W7Qqq1jsjgC%2Fuploads%2F9vUOZKCwtUCuHNeeUNfr%2Fimage.png?alt=media&amp;token=1f28adf4-8175-4520-81b7-29d0100090ea" 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="https://1608311007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSr8m3Ldc2W7Qqq1jsjgC%2Fuploads%2F5Cp03Z5Uy8HSGMWwH1ma%2Fimage.png?alt=media&amp;token=513d3789-3786-49b3-812f-972698a62cf3" 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="https://1608311007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSr8m3Ldc2W7Qqq1jsjgC%2Fuploads%2FZm32W9EOKLdjRxVUKNB8%2Fimage.png?alt=media&amp;token=575edabb-623e-41f8-973e-24d76725aca0" alt=""><figcaption></figcaption></figure>

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