# ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory architecture

> Architecture diagram of the GitHub repository ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory
- Repository: https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory

## Overview

Algorithm Explorer is a Tkinter desktop learning app: users select an optimization or graph problem, provide problem data, and view algorithm results through visualizations. The documented catalog spans transportation methods, Simplex, graph coloring, shortest paths, spanning trees, and maximum flow. The graph follows the documented entry point and the sampled visualization routing; several input-to-visualization handoffs and unsampled implementations are not established by the excerpts, so those links are omitted.

Main entry points: [`Visualisation/graph`](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/tree/main/Visualisation/graph) (Graph Visualizations), [`Visualisation/Programation_leaner`](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/tree/main/Visualisation/Programation_leaner) (Optimization Visualizations), [`gui/pages/main_window.py`](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/gui/pages/main_window.py) (Main Window), [`gui/pages/frame/visualisation_page.py`](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/gui/pages/frame/visualisation_page.py) (Visualization Router)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_entry["Application Entry<br/>[main.py]"]
  node_window["Main Window<br/>[main_window.py]"]
  node_menu["Algorithm Menu<br/>[menu_page.py]"]
  node_router["Visualization Router"]
end

subgraph group_inputs["Problem Input"]
  node_input_pages["Problem Entry Pages"]
  node_graph_inputs["Graph Inputs"]
  node_pl_inputs["Optimization Inputs"]
end

subgraph group_graph["Graph Algorithms"]
  node_graph_data[("Graph Data Model<br/>[graph_data.py]")]
  node_graph_viz["Graph Visualizations"]
  node_bellman_algo["Bellman-Ford<br/>[BellmanFord.py]"]
  node_dijkstra_algo["Dijkstra<br/>[Djikstra.py]"]
  node_welsh_algo["Welsh-Powell<br/>[Welsh_Powell.py]"]
  node_kruskal_algo["Kruskal<br/>[Kruskal.py]"]
  node_flow_algo["Ford-Fulkerson<br/>[FordFulkerson.py]"]
end

subgraph group_lp["Optimization"]
  node_pl_viz["Optimization Visualizations"]
  node_simplex_algo["Simplex Solver<br/>[Simplex.py]"]
  node_northwest_algo["North-West Method<br/>[NorthWest.py]"]
  node_leastcost_algo["Least Cost Method<br/>[MoindreCout.py]"]
  node_vogel_algo["Vogel Method<br/>[Vogels.py]"]
end

node_learner(("Learner"))

node_learner -->|"opens app"| node_window
node_entry -->|"starts"| node_window
node_window -->|"creates"| node_menu
node_window -->|"creates"| node_router
node_window -->|"imports pages"| node_input_pages
node_menu -.->|"offers choices"| node_learner
node_input_pages -->|"accepts graph data"| node_graph_inputs
node_input_pages -.->|"accepts problem data"| node_pl_inputs
node_router -->|"routes selection"| node_graph_viz
node_router -->|"routes selection"| node_pl_viz
node_graph_viz -->|"calls"| node_bellman_algo
node_graph_viz -->|"uses"| node_dijkstra_algo
node_graph_viz -->|"calls"| node_welsh_algo
node_graph_viz -.->|"visualizes"| node_kruskal_algo
node_graph_viz -.->|"visualizes"| node_flow_algo
node_graph_viz -->|"reads"| node_graph_data
node_pl_viz -->|"uses"| node_simplex_algo
node_pl_viz -->|"calls"| node_northwest_algo
node_pl_viz -->|"calls"| node_leastcost_algo
node_pl_viz -->|"calls"| node_vogel_algo

click node_entry "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/main.py"
click node_window "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/gui/pages/main_window.py"
click node_menu "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/gui/pages/frame/menu_page.py"
click node_router "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/gui/pages/frame/visualisation_page.py"
click node_input_pages "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/tree/main/gui/pages/frame"
click node_graph_data "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/data/graph_data.py"
click node_graph_inputs "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/tree/main/gui/pages/frame"
click node_pl_inputs "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/tree/main/gui/pages/frame"
click node_graph_viz "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/tree/main/Visualisation/graph"
click node_bellman_algo "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/graph/BellmanFord.py"
click node_dijkstra_algo "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/graph/Djikstra.py"
click node_welsh_algo "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/graph/Welsh_Powell.py"
click node_kruskal_algo "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/graph/Kruskal.py"
click node_flow_algo "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/graph/FordFulkerson.py"
click node_pl_viz "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/tree/main/Visualisation/Programation_leaner"
click node_simplex_algo "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/pl/Simplex.py"
click node_northwest_algo "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/pl/NorthWest.py"
click node_leastcost_algo "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/pl/MoindreCout.py"
click node_vogel_algo "https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/pl/Vogels.py"

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_entry,node_window,node_menu,node_router toneBlue
class node_input_pages,node_graph_inputs,node_pl_inputs toneAmber
class node_graph_data,node_graph_viz,node_bellman_algo,node_dijkstra_algo,node_welsh_algo,node_kruskal_algo,node_flow_algo toneMint
class node_pl_viz,node_simplex_algo,node_northwest_algo,node_leastcost_algo,node_vogel_algo toneRose
class node_learner toneIndigo
```

## Components

### Application

- [Application Entry](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/main.py): `main.py`
- [Main Window](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/gui/pages/main_window.py): `gui/pages/main_window.py`
- [Algorithm Menu](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/gui/pages/frame/menu_page.py): `gui/pages/frame/menu_page.py`
- [Visualization Router](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/gui/pages/frame/visualisation_page.py): `gui/pages/frame/visualisation_page.py`

### Problem Input

- [Problem Entry Pages](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/tree/main/gui/pages/frame): `gui/pages/frame`
- [Graph Inputs](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/tree/main/gui/pages/frame): `gui/pages/frame`
- [Optimization Inputs](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/tree/main/gui/pages/frame): `gui/pages/frame`

### Graph Algorithms

- [Graph Data Model](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/data/graph_data.py): `data/graph_data.py`
- [Graph Visualizations](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/tree/main/Visualisation/graph): `Visualisation/graph`
- [Bellman-Ford](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/graph/BellmanFord.py): `algorithms/graph/BellmanFord.py`
- [Dijkstra](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/graph/Djikstra.py): `algorithms/graph/Djikstra.py`
- [Welsh-Powell](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/graph/Welsh_Powell.py): `algorithms/graph/Welsh_Powell.py`
- [Kruskal](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/graph/Kruskal.py): `algorithms/graph/Kruskal.py`
- [Ford-Fulkerson](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/graph/FordFulkerson.py): `algorithms/graph/FordFulkerson.py`

### Optimization

- [Optimization Visualizations](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/tree/main/Visualisation/Programation_leaner): `Visualisation/Programation_leaner`
- [Simplex Solver](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/pl/Simplex.py): `algorithms/pl/Simplex.py`
- [North-West Method](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/pl/NorthWest.py): `algorithms/pl/NorthWest.py`
- [Least Cost Method](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/pl/MoindreCout.py): `algorithms/pl/MoindreCout.py`
- [Vogel Method](https://github.com/ellouzati-mohammed/algorithm-explorer-visualizing-linear-programming-graph-theory/blob/main/algorithms/pl/Vogels.py): `algorithms/pl/Vogels.py`

### Other components

- **Learner**

## Connections

- Learner → Main Window: opens app (evidence: `README.md`)
- Application Entry → Main Window: starts (evidence: `main.py`)
- Main Window → Algorithm Menu: creates (evidence: `gui/pages/main_window.py`)
- Main Window → Visualization Router: creates (evidence: `gui/pages/main_window.py`)
- Main Window → Problem Entry Pages: imports pages (evidence: `gui/pages/main_window.py`)
- Algorithm Menu → Learner: offers choices
- Problem Entry Pages → Graph Inputs: accepts graph data (evidence: `gui/pages/frame/input_BellmanFord_page.py`)
- Problem Entry Pages → Optimization Inputs: accepts problem data
- Visualization Router → Graph Visualizations: routes selection (evidence: `gui/pages/frame/visualisation_page.py`)
- Visualization Router → Optimization Visualizations: routes selection (evidence: `gui/pages/frame/visualisation_page.py`)
- Graph Visualizations → Bellman-Ford: calls (evidence: `Visualisation/graph/BellmanFordPage.py`)
- Graph Visualizations → Dijkstra: uses (evidence: `Visualisation/graph/DjikstraPage.py`)
- Graph Visualizations → Welsh-Powell: calls (evidence: `Visualisation/graph/WelshPowellPage.py`)
- Graph Visualizations → Kruskal: visualizes
- Graph Visualizations → Ford-Fulkerson: visualizes
- Graph Visualizations → Graph Data Model: reads (evidence: `Visualisation/graph/BellmanFordPage.py`)
- Optimization Visualizations → Simplex Solver: uses (evidence: `Visualisation/Programation_leaner/SimplexPage.py`)
- Optimization Visualizations → North-West Method: calls (evidence: `Visualisation/Programation_leaner/NorthWestPage.py`)
- Optimization Visualizations → Least Cost Method: calls (evidence: `Visualisation/Programation_leaner/MoindreCoutPage.py`)
- Optimization Visualizations → Vogel Method: calls (evidence: `Visualisation/Programation_leaner/vogelsPage.py`)
