> 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/russkii/uchebnye-posobiya/creating-and-running-a-simple-model/creating-and-running-a-model/adding-nodes-and-links-edges.md).

# Добавление узлов и связей (ребер)

Узлы и звенья (также называемые «ребрами») являются фундаментальными компонентами модели водной системы. Узлы представляют собой определенные элементы системы, такие как резервуары, водосборные бассейны и водоемы, каждый из которых обладает уникальными свойствами, которые называются атрибутами. Например, один из атрибутов — это «max\ \_flow», то есть максимальный поток, проходящий через узел.

Эти атрибуты могут быть разных типов (например, ежемесячные профили) и определяют поведение конкретного узла.

Ребра представляют собой соединения или пути, по которым вода течет между узлами, представляя собой реки, трубопроводы или каналы. Вместе узлы и ребра образуют структуру сети, определяющую движение воды по системе.

Приведенное ниже видео поможет вам выполнить следующие шаги.

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

1. Нажмите на сеть, которую вы создали на первом этапе, «Моя новая сеть»

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

Это открывает сеть. Если при создании сети вы выбрали отображение карты, карта будет показана.

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

1. Приблизьтесь к месту на карте, где вы хотите построить сеть. Мы приблизимся к реке Нил в Судане. Далее нажмите на **Построить** значок, выделенный красным цветом, для просмотра палитры узлов с доступным списком узлов.
2. Перетащите нужные узлы. В этом случае мы будем использовать:

* 1 **Водосборный бассейн** — который будет представлять собой воду, поступающую в систему

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

* 1 **Ссылка** — соединительный узел

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

* 2 **Выходные узлы** — эти узлы удаляют воду из системы. Один из них будет узлом спроса, а другой — устьем или «стоком» реки.

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

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

1. Чтобы соединить узлы, нажмите на **край** для включения режима ссылок. Нажмите на начальный узел (водосбор), а затем на конечный узел (ссылку). Ноды должны начинаться с вышестоящего узла и заканчиваться на нижестоящем узле.

**Обратите внимание:** после создания подключений снова нажмите на **край** снова для отключения режима ссылок.

<figure><img src="https://3817892601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn9Lkjv9vPu8czwmW2MeG%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 dynamically 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/russkii/uchebnye-posobiya/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 `build a script that syncs our docs to a CMS` 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.
