# rubences/polinomio_tda architecture

> Architecture diagram of the GitHub repository rubences/polinomio_tda, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rubences/polinomio_tda
- Repository: https://github.com/rubences/polinomio_tda

## Overview

##### Main Components
- Console/Application Entry Point: Represented by main.py. This is where the application starts and interacts with the user through the terminal.
- Operation Handler: Represented by lanzador.py. It contains functions to perform basic polynomial operations (suma, resta, multiplicación).
- Core Domain:
- Polinomio.py: The class that implements the polynomial data type, structured around a linked list.
- Nodo.py: The node structure used to build the linked list.
- DatoPolinomio.py: The class that encapsulates the data for each polynomial term (i.e., coefficient and degree).
- Utility/Baseline Definitions:
- basico.py: Holds additional definitions or types that support core functionality.

##### Out the Relationships & Interactions
- That Polinomio.py internally uses Nodo.py to build a linked list structure, and each node contains a DatoPolinomio to represent a term.

##### Important Architectural Patterns
- TDA/ADT Implementation: Clearly show that the “Polinomio” is an abstract data type that encapsulates operations on polynomial data.
- Linked List Structure: Illustrate that the internal representation of the polynomial is implemented using a custom linked list (Nodo) with term data (DatoPolinomio).

##### Relevant Technologies & Frameworks
- As this is a pure Python project, note the use of Python and any standard library modules if applicable (even if not explicit in the file tree).
- Since it is console based, emphasize the simple command-line interaction and the absence of external frameworks.

## Diagram (Mermaid)

```mermaid
graph TD
    userInput["User Input"]:::input

    subgraph "Application Entry & Orchestration"
        main["main.py (Entry Point)"]:::app
        lanzador["lanzador.py (Operation Handler)"]:::app
    end

    subgraph "Core Domain / Business Logic"
        polinomio["Polinomio.py (Polynomial TDA)"]:::domain
        nodo["Nodo.py (Linked List Node)"]:::domain
        dato["DatoPolinomio.py (Polynomial Term)"]:::domain
    end

    basico["basico.py (Helper Module)"]:::utility

    userInput -->|"calls"| main
    main -->|"calls"| lanzador
    lanzador -->|"calls"| polinomio
    polinomio -->|"uses"| nodo
    nodo -->|"contains"| dato
    lanzador -->|"uses"| basico

    click main "https://github.com/rubences/polinomio_tda/blob/main/main.py"
    click lanzador "https://github.com/rubences/polinomio_tda/blob/main/lanzador.py"
    click polinomio "https://github.com/rubences/polinomio_tda/blob/main/Polinomio.py"
    click nodo "https://github.com/rubences/polinomio_tda/blob/main/Nodo.py"
    click dato "https://github.com/rubences/polinomio_tda/blob/main/DatoPolinomio.py"
    click basico "https://github.com/rubences/polinomio_tda/blob/main/basico.py"

    classDef app fill:#AED6F1,stroke:#1B4F72,stroke-width:2px;
    classDef domain fill:#A9DFBF,stroke:#145A32,stroke-width:2px;
    classDef utility fill:#F9E79F,stroke:#B7950B,stroke-width:2px;
    classDef input fill:#F5B7B1,stroke:#C0392B,stroke-width:2px;
```
