> For the complete documentation index, see [llms.txt](https://water-strategy.gitbook.io/waterstrategy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://water-strategy.gitbook.io/waterstrategy/portugues/tutoriais/creating-and-running-a-simple-model/creating-and-running-a-model/adding-nodes-and-links-edges.md).

# Adicionando nós e links (bordas)

Os nós e links (também chamados de “bordas”) são componentes fundamentais do modelo do sistema de água. Os nós representam elementos específicos dentro do sistema, como reservatórios, captações e demandas, cada um com propriedades exclusivas, chamadas de atributos. Por exemplo, um atributo é o 'max\ \_flow', que é o fluxo máximo através de um nó.

Esses atributos podem ser de diferentes tipos (por exemplo, perfis mensais) e determinam o comportamento do nó específico.

As bordas representam as conexões ou caminhos pelos quais a água flui entre os nós, representando rios, tubulações ou canais. Juntos, nós e bordas formam a estrutura da rede, definindo como a água se move pelo sistema.

O vídeo abaixo pode ajudar você a seguir as etapas abaixo.

{% embed url="<https://www.youtube.com/watch?v=hoqyjNIJdKs#t=2m40s>" %}

1. Clique na rede que você criou na primeira etapa, 'Minha nova rede'

![](https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-b71917a64818904ea0c967555bbf4b86163fbd08%2F0%20\(10\).png?alt=media)

Isso abre a rede. Se você optou por exibir um mapa ao criar a rede, um mapa será exibido.

![](https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-164e21762aa30aa62b6220db9d47b6b591448c80%2F1%20\(10\).png?alt=media)

1. Amplie até um local no mapa em que você deseja criar uma rede. Vamos ampliar até o rio Nilo, no Sudão. Em seguida, clique no **Construir** ícone destacado em vermelho para visualizar a paleta de nós que mostra a lista disponível de nós.
2. Arraste e solte os nós a serem usados. Nesse caso, usaremos:

* 1 **Captação** - que representará a água fluindo para o sistema

![](https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-2b197e5c49eb339b0f2a6722164ed770b49456b4%2F2%20\(9\).png?alt=media)

* 1 **Link** - um nó de conexão

![](https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-87b55001843e891c5c7b521dbe46dcaf62b35f1c%2F3%20\(9\).png?alt=media)

* 2 **Nodos de saída** - Esses nós removem a água do sistema. Um será um nó de demanda e o outro será uma saída de rio ou “sumidouro”.

![](https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-3ab9ce05f04fe2a8a43a245a2cc8db8b041ae2bb%2F4%20\(9\).png?alt=media)

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-8a76d189dfa3b10459f596ff96d0a0608902f9c0%2Fimage%20(85).png?alt=media" alt=""><figcaption></figcaption></figure>

1. Para conectar os nós, clique em **borda** para ativar o modo de link. Clique no nó inicial (captação) e, em seguida, clique no nó final (link). Os nós devem ser iniciados a partir do nó upstream e terminados no nó downstream.

**Por favor, note:** depois de criar as conexões, clique novamente em **borda** novamente para desativar o modo de link.

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-70084b8b65c9223571e1fc8563b46d09cc41631c%2Fimage%20(84).png?alt=media" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://water-strategy.gitbook.io/waterstrategy/portugues/tutoriais/creating-and-running-a-simple-model/creating-and-running-a-model/adding-nodes-and-links-edges.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
