# 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&#x26;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&#x26;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&#x26;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&#x26;token=f77c542b-c5a3-4bcd-86ff-0e60eb96e40f" alt="" width="563"><figcaption></figcaption></figure>

* You can add any content just like the [AI Text note](../dashboard/widget-types/ai-text-note) 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&#x26;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&#x26;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%2FsheHTjcLK7zQvMWOEtTn%2Fimage.png?alt=media&#x26;token=ca998ade-f07d-47e1-b2e5-e601b65a42f5" 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%2FLamaGsIVhADxivG0dIGT%2Fimage.png?alt=media&#x26;token=5bb22864-def5-4bfe-b38b-6dd5a0b9b13b" 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%2Fu97SWlcv7tHkyF9x7fzM%2Fimage.png?alt=media&#x26;token=e7e82879-ffc9-4bca-b2dd-7d544b634834" alt=""><figcaption></figcaption></figure>

* You can set the data model as hide status when click on the Show / Hide icon.

<figure><img src="https://1608311007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSr8m3Ldc2W7Qqq1jsjgC%2Fuploads%2FEYgLWyYmsPt2YXkXmvCj%2Fimage.png?alt=media&#x26;token=08bc6098-143b-4244-a8fa-0063161ddab1" 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&#x26;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%2FHYlCfmUpWguNbKGWOZfr%2Fimage.png?alt=media&#x26;token=7a7f1a4e-a151-4981-b313-0c0ae5b08db7" 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&#x26;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.
