# iamleo2505/proyectopedgrupo4 architecture

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

- Interactive diagram: https://gitdiagram.com/iamleo2505/proyectopedgrupo4
- Repository: https://github.com/iamleo2505/proyectopedgrupo4

## Overview

##### Main Components
- User Interface Layer:
- The numerous “Form” files (e.g., FormArbolBinario, FormBubbleSort, FormColaCircular, FormFloyd, etc.) and their associated Designer and resource files represent the presentation layer.
- The InterfazPrincipal files act as the central or main user interface which likely navigates between the various algorithm demonstrations.
- Algorithm/Logic Components:
- These include classes like ArbolBinario.cs, BubbleSort.cs, ColaCircular.cs, HeapSort.cs, Quicksort.cs, SelectionSort.cs, ShakerSort.cs, ShellSort.cs, and others.
- They encapsulate the business logic and algorithm implementations.
- Data Models:
- The “Modelos” directory and files such as ListaDoble.cs, NodoDoble.cs, and other data classes indicate the domain objects or underlying data structures used by the algorithms.
- Application Entry Point:
- Program.cs and the project/solution files (.csproj, .sln) establish the basic configuration and startup for the application.
- Support/Configuration:
- Files like app.manifest and Properties files manage application settings and resources.

##### Relationships and Interactions
- The UI Layer (Forms) interacts with the Algorithm Components:
- Each form (e.g., FormBubbleSort or FormFloyd) provides a graphical interface that allows the user to initiate algorithm executions, pass data, and view visualizations/results.
- The Algorithm Components utilize Data Models:
- For example, a sorting or tree algorithm class might create, modify, or traverse data structures defined in the “Modelos” folder.
- The code structure follows separation of concerns:
- Although not a strict MVC pattern, the separation between UI files (forms) and algorithm implementations (logic classes) is clear.

##### Architectural Patterns and Design Principles
- The design seems to follow a modular approach where each algorithm or data structure is encapsulated in its own set of classes.
- There’s a clear distinction between presentation and business logic which is a best practice in Windows Forms applications.
- The project emphasizes reusability, as seen by distinct implementations and separate files per algorithm.

##### Technologies and Frameworks
- .NET Framework using C#.
- Windows Forms as the primary UI technology.
- Standard Visual Studio project structure with resource management, design files, and manifest for app configuration.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Application Entry & Configuration
    subgraph "Application Entry & Configuration"
        A1("Program.cs"):::entry
        A2("ProyectoFinalEstructuraDatosGrupo4.csproj"):::entry
        A3("ProyectoFinalEstructuraDatosGrupo4.sln"):::entry
        A4("app.manifest"):::entry
        A5("Properties"):::entry
    end

    %% User Interface Components
    subgraph "User Interface Components"
        U1("InterfazPrincipal"):::ui
        U2("FormArbolBinario"):::ui
        U3("FormBubbleSort"):::ui
        U4("FormColaCircular"):::ui
        U5("FormFloyd"):::ui
        U6("GrafoAlgoritmoFloyd"):::ui
        U7("FormHeapSort"):::ui
        U8("FormListaDoble"):::ui
        U9("FormListaSimple"):::ui
        U10("FormMarshall"):::ui
        U11("FormQuicksort"):::ui
        U12("FormSelectionSort"):::ui
        U13("FormShakerSort"):::ui
        U14("FormShellSort"):::ui
        U15("FrmColas"):::ui
        U16("FrmListaDoble"):::ui
        U17("GrafoDijkstra"):::ui
        U18("frmPilas"):::ui
        U19("frmcolas"):::ui
    end

    %% Algorithm/Logic Components
    subgraph "Algorithm/Logic Components"
        L1("BubbleSort"):::logic
        L2("HeapSort"):::logic
        L3("Quicksort"):::logic
        L4("SelectionSort"):::logic
        L5("ShakerSort"):::logic
        L6("ShellSort"):::logic
        L7("ArbolBinario"):::logic
        L8("NodoArbolBinario"):::logic
        L9("ColaCircular"):::logic
        L10("ListD"):::logic
        L11("Nodo"):::logic
        L12("NodoP"):::logic
    end

    %% Data Models
    subgraph "Data Models"
        D1("Modelos/ListaDoble"):::models
        D2("Modelos/NodoDoble"):::models
        D3("ListaProducto"):::models
        D4("Producto"):::models
        D5("ProductoColasCirculares"):::models
    end

    %% Additional Components
    subgraph "Additional Components"
        X1("README.md"):::support
        X2(".gitattributes"):::support
        X3(".gitignore"):::support
    end

    %% Relationships
    A1 -->|"initiates"| U1
    U1 -->|"navigatesTo"| U2
    U1 -->|"navigatesTo"| U3
    U1 -->|"navigatesTo"| U4
    U1 -->|"navigatesTo"| U5
    U1 -->|"navigatesTo"| U7
    U1 -->|"navigatesTo"| U11
    U1 -->|"navigatesTo"| U12
    U1 -->|"navigatesTo"| U13
    U1 -->|"navigatesTo"| U14

    U3 -->|"callsAlgorithm"| L1
    U7 -->|"callsAlgorithm"| L2
    U11 -->|"callsAlgorithm"| L3
    U12 -->|"callsAlgorithm"| L4
    U13 -->|"callsAlgorithm"| L5
    U14 -->|"callsAlgorithm"| L6
    U2 -->|"callsAlgorithm"| L7
    U4 -->|"callsAlgorithm"| L9

    L1 -->|"uses"| D1
    L1 -->|"uses"| D2
    L7 -->|"uses"| D3
    L9 -->|"uses"| D5

    %% Click Events for User Interface Components
    click U1 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/InterfazPrincipal.cs"
    click U2 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FormArbolBinario.cs"
    click U3 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FormBubbleSort.cs"
    click U4 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FormColaCircular.cs"
    click U5 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FormFloyd.cs"
    click U6 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FormGrafoAlgoritmoFloyd.cs"
    click U7 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FormHeapSort.cs"
    click U8 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FormListaDoble.cs"
    click U9 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FormListaSimple.cs"
    click U10 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FormMarshall.cs"
    click U11 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FormQuicksort.cs"
    click U12 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FormSelectionSort.cs"
    click U13 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FormShakerSort.cs"
    click U14 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FormShellSort.cs"
    click U15 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FrmColas.cs"
    click U16 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/FrmListaDoble.cs"
    click U17 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/GrafoDijkstra.cs"
    click U18 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/frmPilas.cs"
    click U19 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/frmcolas.resx"

    %% Click Events for Algorithm/Logic Components
    click L1 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/BubbleSort.cs"
    click L2 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/HeapSort.cs"
    click L3 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/Quicksort.cs"
    click L4 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/SelectionSort.cs"
    click L5 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/ShakerSort.cs"
    click L6 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/ShellSort.cs"
    click L7 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/ArbolBinario.cs"
    click L8 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/NodoArbolBinario.cs"
    click L9 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/ColaCircular.cs"
    click L10 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/ListD.cs"
    click L11 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/Nodo.cs"
    click L12 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/NodoP.cs"

    %% Click Events for Data Models
    click D1 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/Modelos/ListaDoble.cs"
    click D2 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/Modelos/NodoDoble.cs"
    click D3 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/ListaProducto.cs"
    click D4 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/Producto.cs"
    click D5 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/ProductoColasCirculares.cs"

    %% Click Events for Application Entry & Configuration
    click A1 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/Program.cs"
    click A2 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/ProyectoFinalEstructuraDatosGrupo4.csproj"
    click A3 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/ProyectoFinalEstructuraDatosGrupo4.sln"
    click A4 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/app.manifest"
    click A5 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/Properties/Resources.Designer.cs"

    %% Click Events for Additional Components
    click X1 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/README.md"
    click X2 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/.gitattributes"
    click X3 "https://github.com/iamleo2505/proyectopedgrupo4/blob/main/.gitignore"

    %% Styles
    classDef ui fill:#f9e79f,stroke:#d35400,stroke-width:2px;
    classDef logic fill:#aed6f1,stroke:#2874a6,stroke-width:2px;
    classDef models fill:#a9dfbf,stroke:#28b463,stroke-width:2px;
    classDef entry fill:#f5b7b1,stroke:#c0392b,stroke-width:2px;
    classDef support fill:#d7dbdd,stroke:#7f8c8d,stroke-width:2px;
```
