# Relationship graph

In Cortex, use the relationship graph to better understand:

* **Dependencies**
  * Visualize how entities relate to one another
    * You can also [sync dependencies](https://docs.cortex.io/ingesting-data-into-cortex/adding-entities/dependencies#sync-dependencies) from the Relationship Graph.

      <figure><img src="https://826863033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJW7pYRxS4dHS3Hv6wxve%2Fuploads%2Fgit-blob-eeb9c9e06f579f60196b85ca49eb5ace63b98b68%2Fdependencies-graph.jpg?alt=media" alt="Visualize dependencies in the relationship graph."><figcaption></figcaption></figure>
* **Domains**
  * See a hierarchical diagram of your software architecture

    <figure><img src="https://826863033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJW7pYRxS4dHS3Hv6wxve%2Fuploads%2Fgit-blob-bfc7e62bd071d32f2760b019db2b3813dbf77070%2Fdomains-graph.jpg?alt=media" alt="Visualize domains in the relationship graph."><figcaption></figcaption></figure>
* **Teams**
  * View your company's team structure

    <figure><img src="https://826863033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJW7pYRxS4dHS3Hv6wxve%2Fuploads%2Fgit-blob-5f9fc3d7d74dbc0cf335a357a5addf1dd9cb9df8%2Fteams-graph.jpg?alt=media" alt="Visualize teams in the relationship graph."><figcaption></figcaption></figure>

## View the relationship graph

You can access the relationship graph from the main nav: Navigate to **Tools > Relationship graphs**. By default, the page displays all entities with dependencies and how they relate to one another.

## Filter the relationship graph

{% hint style="info" %}
If you have more than 500 nodes in the graph, you must select a filter before the graph will display.
{% endhint %}

### Select a relationship type

At the top of the page, choose which relationships you want to view: Dependencies, domains, or teams.

<figure><img src="https://826863033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJW7pYRxS4dHS3Hv6wxve%2Fuploads%2Fgit-blob-ee465f31b571875498411de0388a39701ae6bb6e%2Frelationship-type.jpg?alt=media" alt=""><figcaption><p>Select dependencies, domains, or teams.</p></figcaption></figure>

### Filter the graph

You can apply filters to narrow the scope of the graph:

1. Click **Filters** at the top of the page.
2. Apply filters for the following options:
   * Sources
   * Groups
   * Entity types
   * Degrees from selected node

The page will automatically apply your selected filters and reload the visualization.

### Select a display option

At the top of the graph, click **Display options** to select:

* A Scorecard to filter the graph by
* Whether to hide team nodes without children
* Whether to hide archived entities

### View more details on an entity

In the graph, click an entity to open a modal with the ability to:

* Filter by this node
* Go directly to its entity details page
* View a list of its child entities or dependencies

<div align="left"><figure><img src="https://826863033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJW7pYRxS4dHS3Hv6wxve%2Fuploads%2Fgit-blob-ff8ec09177250ef6a70afedc668c9242c0153e76%2Ffilter-by-node.jpg?alt=media" alt=""><figcaption><p>Click a node to open a modal with more information.</p></figcaption></figure></div>

## Adjust appearance settings

You must have the `Configure settings` permission.

Under [**Settings > Relationship graph**](https://app.getcortexapp.com/admin/settings/appearance/relationship-graph), you can select whether to display dependencies, domains, or teams by default when you first open the relationship graph.


---

# 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://docs.cortex.io/ingesting-data-into-cortex/entities/relationship-graph.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.
