Skip to content

Graph Nodes

Graph nodes in Databraid are used to create and manage subgraphs within a braid. Subgraphs allow you to encapsulate a portion of your braid’s functionality into a reusable and modular component. They help in organizing complex braids and promoting code reusability.

Subgraph Node

  • Subgraph: Represents a nested subgraph within the main braid. It acts as a container for a subset of nodes and their connections. Subgraphs can be created to group related functionality or to simplify the overall structure of the braid.

Subgraph I/O Nodes

  • Input: Defines an input point for a subgraph. It allows data to be passed from the main braid into the subgraph. Input nodes are used to provide the necessary data or parameters required by the nodes within the subgraph.

  • Output: Defines an output point for a subgraph. It allows data to be returned from the subgraph back to the main braid. Output nodes are used to expose the results or processed data from the subgraph to be used by other nodes in the main braid.

Graph nodes provide a way to modularize and organize braids by creating self-contained subgraphs. Subgraphs can be reused across different braids or within the same braid, promoting code reusability and maintainability.

By using input and output nodes, you can define clear interfaces for the subgraphs, specifying the data that flows into and out of them. This allows for a clean separation of concerns and enables the creation of modular and composable braids.

Subgraphs can be nested within each other, allowing for hierarchical organization and further abstraction of functionality. This can be particularly useful when dealing with complex braids that have multiple levels of abstraction or when creating libraries of reusable components.

Graph nodes in Databraid provide a powerful mechanism for structuring and managing large and intricate braids. They promote code organization, reusability, and maintainability, making it easier to develop and understand complex data processing pipelines or interactive applications.

Remember to refer to the individual node documentation for more details on their specific inputs, outputs, and configuration options, as well as examples and best practices for using them effectively in your braids.