> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getgalaxy.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Edges

> Connecting nodes into a living graph in Galaxy

## **What is an Edge?**

An **Edge** defines how two nodes are connected.

<Frame>
  <img src="https://mintcdn.com/galaxy-d7fe996b/6-Rz1rpIBcXfVZgy/images/edge-still.png?fit=max&auto=format&n=6-Rz1rpIBcXfVZgy&q=85&s=14e86f4b4b15effb239a7820849bfa85" alt="Edge Still" width="2880" height="2048" data-path="images/edge-still.png" />
</Frame>

If Nodes are the nouns of your context graph, Edges are the verbs.

Examples:

* Customer **places** Order
* Order **contains** Product
* Employee **works on** Project
* Account **belongs to** Organization
* Firm **invested in** Company

Without edges, you only have isolated concepts. With edges, you can answer questions like:

* Which customers bought this product?
* Which invoices belong to this account?
* Who is responsible for this deal?
* How are these two entities connected?

## **Representing Data as Edges**

Nodes define the main entities of your graph. Edges define how those things interact. Edges can represent many kinds of connections. Some examples:

| **Source Node** | **Edge**   | **Target Node** |
| :-------------- | :--------- | :-------------- |
| Customer        | places     | Order           |
| Order           | contains   | Product         |
| Employee        | manages    | Account         |
| Department      | includes   | Employee        |
| Invoice         | references | Contract        |

Every edge in Galaxy includes several layers of information:

<Steps>
  <Step title="Label">
    Ex: PLACES
  </Step>

  <Step title="Source Node">
    Ex: Customer A
  </Step>

  <Step title="Target Node">
    Ex: Order
  </Step>

  <Step title="Provenance">
    This is how we map back to your sources.
  </Step>
</Steps>

## **What’s Next**

You now understand the core concepts behind your context graph. The next step is to start building.

<Card icon="database" horizontal href="/sources" title="Sources">
  Connect your sources
</Card>

<Card icon="diagram-project" horizontal href="/projects" title="Projects">
  Build your context graph
</Card>
