# normdarobot/tree-data-structure architecture

> Architecture diagram of the GitHub repository normdarobot/tree-data-structure, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/normdarobot/tree-data-structure
- Repository: https://github.com/normdarobot/tree-data-structure

## Overview

This is a small C++ binary-tree and binary-search-tree exercise. Its visible domain workflow is to represent trees with binary nodes, provide general tree operations through Arbin, and specialize them with ABB’s search-tree operations. The source index identifies a substantial main.cpp, but it was not sampled, so its role and connections cannot be established. Relationships below are limited to declarations, inheritance, includes, and exception inheritance visible in the provided excerpts.

Main entry points: [`arbin.h`](https://github.com/normdarobot/tree-data-structure/blob/main/arbin.h) (Binary tree), [`abb.h`](https://github.com/normdarobot/tree-data-structure/blob/main/abb.h) (Search tree), [`excep_abb.h`](https://github.com/normdarobot/tree-data-structure/blob/main/excep_abb.h) (Empty-tree error), [`excepcion.h`](https://github.com/normdarobot/tree-data-structure/blob/main/excepcion.h) (Base exception)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_application["Application"]
  node_main["Program entry<br/>[main.cpp]"]
end

subgraph group_trees["Tree structures"]
  node_abb["Search tree<br/>[abb.h]"]
  node_arbin["Binary tree<br/>[arbin.h]"]
  node_node["Binary node<br/>[nodoB.h]"]
end

subgraph group_errors["Exceptions"]
  node_abb_error["Empty-tree error<br/>[excep_abb.h]"]
  node_arbin_error["Tree-position error<br/>[excep_arbin.h]"]
  node_base_error["Base exception<br/>[excepcion.h]"]
  node_ej6_error["Successor error<br/>[excep_Ej6.h]"]
end

node_abb -->|"extends"| node_arbin
node_arbin -->|"uses nodes"| node_node
node_arbin -->|"uses error"| node_arbin_error
node_abb -->|"uses error"| node_abb_error
node_abb_error -->|"extends"| node_base_error
node_ej6_error -->|"extends"| node_base_error

click node_main "https://github.com/normdarobot/tree-data-structure/blob/main/main.cpp"
click node_abb "https://github.com/normdarobot/tree-data-structure/blob/main/abb.h"
click node_arbin "https://github.com/normdarobot/tree-data-structure/blob/main/arbin.h"
click node_node "https://github.com/normdarobot/tree-data-structure/blob/main/nodoB.h"
click node_abb_error "https://github.com/normdarobot/tree-data-structure/blob/main/excep_abb.h"
click node_arbin_error "https://github.com/normdarobot/tree-data-structure/blob/main/excep_arbin.h"
click node_base_error "https://github.com/normdarobot/tree-data-structure/blob/main/excepcion.h"
click node_ej6_error "https://github.com/normdarobot/tree-data-structure/blob/main/excep_Ej6.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main toneBlue
class node_abb,node_arbin,node_node toneAmber
class node_abb_error,node_arbin_error,node_base_error,node_ej6_error toneMint
```

## Components

### Application

- [Program entry](https://github.com/normdarobot/tree-data-structure/blob/main/main.cpp): `main.cpp`

### Tree structures

- [Search tree](https://github.com/normdarobot/tree-data-structure/blob/main/abb.h): `abb.h`
- [Binary tree](https://github.com/normdarobot/tree-data-structure/blob/main/arbin.h): `arbin.h`
- [Binary node](https://github.com/normdarobot/tree-data-structure/blob/main/nodoB.h): `nodoB.h`

### Exceptions

- [Empty-tree error](https://github.com/normdarobot/tree-data-structure/blob/main/excep_abb.h): `excep_abb.h`
- [Tree-position error](https://github.com/normdarobot/tree-data-structure/blob/main/excep_arbin.h): `excep_arbin.h`
- [Base exception](https://github.com/normdarobot/tree-data-structure/blob/main/excepcion.h): `excepcion.h`
- [Successor error](https://github.com/normdarobot/tree-data-structure/blob/main/excep_Ej6.h): `excep_Ej6.h`

## Connections

- Search tree → Binary tree: extends (evidence: `abb.h`)
- Binary tree → Binary node: uses nodes (evidence: `arbin.h`)
- Binary tree → Tree-position error: uses error (evidence: `arbin.h`)
- Search tree → Empty-tree error: uses error (evidence: `abb.h`)
- Empty-tree error → Base exception: extends (evidence: `excep_abb.h`)
- Successor error → Base exception: extends (evidence: `excep_Ej6.h`)
