# angepatrickkoutou/graphealgo_ architecture

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

- Interactive diagram: https://gitdiagram.com/angepatrickkoutou/graphealgo_
- Repository: https://github.com/angepatrickkoutou/graphealgo_

## Overview

GrapheAlgo is a Java graph-algorithm teaching application with Swing-style graph-management windows. The documented workflow is to launch the graphical mode, choose a graph type, then import or create a matrix and inspect graph representations or algorithm results. Its domain capabilities include graph-format conversion, distances and ranks, Tarjan connectivity, scheduling, Dijkstra, Kruskal, and Prüfer coding. The README documents these features, but source excerpts do not show most button-handler calls, so those links are documented rather than asserted as implementation-level calls.

Main entry points: [`src/Graphe/Gestion_Graphe_Orienter.java`](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Gestion_Graphe_Orienter.java) (Oriented manager), [`src/Graphe/Gestion_Graphe_Nom_Orienter.java`](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Gestion_Graphe_Nom_Orienter.java) (Undirected manager), [`src/Graphe/Main1.java`](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Main1.java) (Application entry), [`src/Graphe/Gestion_Arbre.java`](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Gestion_Arbre.java) (Tree manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User interface"]
  node_main["Application entry<br/>[Main1.java]"]
  node_oriented_ui["Oriented manager"]
  node_undirected_ui["Undirected manager"]
  node_tree_ui["Tree manager<br/>[Gestion_Arbre.java]"]
end

subgraph group_models["Graph models"]
  node_directed_graph["Directed graph"]
  node_undirected_graph["Undirected graph"]
  node_tree["Tree and Prüfer<br/>[Arbre.java]"]
  node_task["Scheduling task<br/>[Tache.java]"]
  node_predecessors["Predecessor structure<br/>[FpAppD.java]"]
  node_edge["Weighted edge<br/>[Arete.java]"]
end

subgraph group_algorithms["Graph algorithms"]
  node_conversions["Format conversion"]
  node_distance_rank["Distance and rank"]
  node_tarjan["Tarjan connectivity"]
  node_dijkstra["Dijkstra paths"]
  node_kruskal["Kruskal spanning tree<br/>[GrapheKruskal.java]"]
end

subgraph group_display["Graph display"]
  node_display_graph["Graph visualization"]
  node_jgrapht["JGraphT library<br/>[Graph.java]"]
end

node_user(("User"))

node_user -->|"launches"| node_main
node_main -.->|"opens"| node_oriented_ui
node_user -->|"selects graph"| node_oriented_ui
node_user -->|"selects graph"| node_undirected_ui
node_user -.->|"selects graph"| node_tree_ui
node_user -->|"imports or creates"| node_oriented_ui
node_oriented_ui -->|"manages"| node_directed_graph
node_undirected_ui -->|"manages"| node_undirected_graph
node_tree_ui -.->|"manages"| node_tree
node_oriented_ui -->|"offers"| node_conversions
node_oriented_ui -->|"offers"| node_distance_rank
node_oriented_ui -->|"offers"| node_tarjan
node_oriented_ui -->|"offers"| node_dijkstra
node_undirected_ui -->|"offers"| node_kruskal
node_task -->|"uses"| node_predecessors
node_kruskal -->|"uses"| node_edge
node_oriented_ui -.->|"displays graph"| node_display_graph
node_display_graph -.->|"adapts graph"| node_jgrapht
node_user -->|"encodes or decodes"| node_tree
node_user -->|"schedules tasks"| node_task

click node_main "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Main1.java"
click node_oriented_ui "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Gestion_Graphe_Orienter.java"
click node_undirected_ui "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Gestion_Graphe_Nom_Orienter.java"
click node_tree_ui "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Gestion_Arbre.java"
click node_directed_graph "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Graphe_orienter_value.java"
click node_undirected_graph "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Graphe_Non_orienter_value.java"
click node_tree "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Arbre.java"
click node_task "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Tache.java"
click node_predecessors "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/FpAppD.java"
click node_conversions "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Graphe_orienter_value.java"
click node_distance_rank "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Graphe_orienter_value.java"
click node_tarjan "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Graphe_orienter_value.java"
click node_dijkstra "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Graphe_orienter_value.java"
click node_kruskal "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/GrapheKruskal.java"
click node_edge "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Arete.java"
click node_display_graph "https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/JGraphXAdapterDemo.java"
click node_jgrapht "https://github.com/angepatrickkoutou/graphealgo_/blob/master/jgrapht-1.5.1/source/jgrapht-core/src/main/java/org/jgrapht/Graph.java"

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,node_oriented_ui,node_undirected_ui,node_tree_ui,node_user toneBlue
class node_directed_graph,node_undirected_graph,node_tree,node_task,node_predecessors,node_edge toneAmber
class node_conversions,node_distance_rank,node_tarjan,node_dijkstra,node_kruskal toneMint
class node_display_graph,node_jgrapht toneRose
```

## Components

### User interface

- [Application entry](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Main1.java): `src/Graphe/Main1.java`
- [Oriented manager](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Gestion_Graphe_Orienter.java): `src/Graphe/Gestion_Graphe_Orienter.java`
- [Undirected manager](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Gestion_Graphe_Nom_Orienter.java): `src/Graphe/Gestion_Graphe_Nom_Orienter.java`
- [Tree manager](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Gestion_Arbre.java): `src/Graphe/Gestion_Arbre.java`

### Graph models

- [Directed graph](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Graphe_orienter_value.java): `src/Graphe/Graphe_orienter_value.java`
- [Undirected graph](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Graphe_Non_orienter_value.java): `src/Graphe/Graphe_Non_orienter_value.java`
- [Tree and Prüfer](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Arbre.java): `src/Graphe/Arbre.java`
- [Scheduling task](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Tache.java): `src/Graphe/Tache.java`
- [Predecessor structure](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/FpAppD.java): `src/Graphe/FpAppD.java`
- [Weighted edge](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Arete.java): `src/Graphe/Arete.java`

### Graph algorithms

- [Format conversion](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Graphe_orienter_value.java): `src/Graphe/Graphe_orienter_value.java`
- [Distance and rank](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Graphe_orienter_value.java): `src/Graphe/Graphe_orienter_value.java`
- [Tarjan connectivity](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Graphe_orienter_value.java): `src/Graphe/Graphe_orienter_value.java`
- [Dijkstra paths](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/Graphe_orienter_value.java): `src/Graphe/Graphe_orienter_value.java`
- [Kruskal spanning tree](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/GrapheKruskal.java): `src/Graphe/GrapheKruskal.java`

### Graph display

- [Graph visualization](https://github.com/angepatrickkoutou/graphealgo_/blob/master/src/Graphe/JGraphXAdapterDemo.java): `src/Graphe/JGraphXAdapterDemo.java`
- [JGraphT library](https://github.com/angepatrickkoutou/graphealgo_/blob/master/jgrapht-1.5.1/source/jgrapht-core/src/main/java/org/jgrapht/Graph.java): `jgrapht-1.5.1/source/jgrapht-core/src/main/java/org/jgrapht/Graph.java`

### Other components

- **User**

## Connections

- User → Application entry: launches
- Application entry → Oriented manager: opens
- User → Oriented manager: selects graph
- User → Undirected manager: selects graph
- User → Tree manager: selects graph
- User → Oriented manager: imports or creates
- Oriented manager → Directed graph: manages
- Undirected manager → Undirected graph: manages
- Tree manager → Tree and Prüfer: manages
- Oriented manager → Format conversion: offers
- Oriented manager → Distance and rank: offers
- Oriented manager → Tarjan connectivity: offers
- Oriented manager → Dijkstra paths: offers
- Undirected manager → Kruskal spanning tree: offers
- Scheduling task → Predecessor structure: uses (evidence: `src/Graphe/Tache.java`)
- Kruskal spanning tree → Weighted edge: uses (evidence: `src/Graphe/GrapheKruskal.java`)
- Oriented manager → Graph visualization: displays graph
- Graph visualization → JGraphT library: adapts graph
- User → Tree and Prüfer: encodes or decodes
- User → Scheduling task: schedules tasks
