# simonebbruun/genetically_optimized_graph_rs architecture

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

- Interactive diagram: https://gitdiagram.com/simonebbruun/genetically_optimized_graph_rs
- Repository: https://github.com/simonebbruun/genetically_optimized_graph_rs

## Overview

This repository is a research workflow for graph-based recommendation on educational-social-network and insurance interaction data. Users prepare or split data, tune graph and conventional recommender models, optimize graph weights, evaluate recommendations (including threshold sweeps), and compare results statistically or plot them. The scripts are standalone rather than a demonstrated service pipeline: the README documents the stage order, while sampled source shows graph construction and evaluation logic. The graph therefore represents documented workflow handoffs, not unverified function calls between scripts.

Main entry points: [`educational_social_network`](https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/educational_social_network) (Education thresholds), [`insurance`](https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/insurance) (Insurance tuning), [`educational_social_network/4_undirected_graph_evaluation.py`](https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/educational_social_network/4_undirected_graph_evaluation.py) (Education graph eval), [`insurance/4_undirected_graph_evaluation.py`](https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/insurance/4_undirected_graph_evaluation.py) (Insurance graph eval)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Data preparation"]
  node_edu_prep["Education split<br/>[1_data_split.py]"]
  node_ins_prep["Insurance preprocess"]
end

subgraph group_models["Model development"]
  node_edu_tune["Education tuning"]
  node_ins_tune["Insurance tuning"]
  node_edu_weight["Education weights"]
  node_ins_weight["Insurance weights"]
end

subgraph group_eval["Evaluation"]
  node_edu_classic["Education baselines"]
  node_ins_classic["Insurance baselines"]
  node_edu_graph_eval["Education graph eval"]
  node_ins_graph_eval["Insurance graph eval"]
  node_edu_directed_eval["Education directed eval"]
  node_ins_directed_eval["Insurance directed eval"]
  node_edu_threshold["Education thresholds"]
end

subgraph group_analysis["Result analysis"]
  node_edu_stats["Education significance"]
  node_ins_stats["Insurance significance"]
  node_edu_plots["Education plots"]
  node_ins_plots["Insurance plots"]
end

node_researcher(("Researcher"))
node_edu_source[("Education data")]
node_ins_source[("Insurance data")]

node_researcher -->|"starts workflow"| node_edu_prep
node_researcher -->|"starts workflow"| node_ins_prep
node_edu_source -.->|"provides data"| node_edu_prep
node_ins_source -.->|"provides data"| node_ins_prep
node_edu_prep -->|"then tune"| node_edu_tune
node_ins_prep -->|"then tune"| node_ins_tune
node_edu_tune -->|"then optimize"| node_edu_weight
node_ins_tune -->|"then optimize"| node_ins_weight
node_edu_weight -->|"then evaluate"| node_edu_graph_eval
node_edu_weight -->|"then evaluate"| node_edu_directed_eval
node_ins_weight -->|"then evaluate"| node_ins_graph_eval
node_ins_weight -->|"then evaluate"| node_ins_directed_eval
node_edu_tune -->|"then evaluate"| node_edu_classic
node_ins_tune -->|"then evaluate"| node_ins_classic
node_edu_directed_eval -->|"sweep thresholds"| node_edu_threshold
node_edu_classic -->|"sweep thresholds"| node_edu_threshold
node_edu_graph_eval -->|"sweep thresholds"| node_edu_threshold
node_edu_threshold -->|"plot measures"| node_edu_plots
node_edu_classic -->|"compare results"| node_edu_stats
node_edu_graph_eval -->|"compare results"| node_edu_stats
node_edu_directed_eval -->|"compare results"| node_edu_stats
node_ins_classic -->|"compare results"| node_ins_stats
node_ins_graph_eval -->|"compare results"| node_ins_stats
node_ins_directed_eval -->|"compare results"| node_ins_stats
node_ins_classic -->|"plot measures"| node_ins_plots
node_ins_graph_eval -->|"plot measures"| node_ins_plots

click node_edu_prep "https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/educational_social_network/1_data_split.py"
click node_ins_prep "https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/insurance/1_data_preprocessing.py"
click node_edu_tune "https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/educational_social_network"
click node_ins_tune "https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/insurance"
click node_edu_weight "https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/educational_social_network"
click node_ins_weight "https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/insurance"
click node_edu_classic "https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/educational_social_network"
click node_ins_classic "https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/insurance"
click node_edu_graph_eval "https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/educational_social_network/4_undirected_graph_evaluation.py"
click node_ins_graph_eval "https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/insurance/4_undirected_graph_evaluation.py"
click node_edu_directed_eval "https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/educational_social_network/4_uniform_and_directed_graph_evaluation.py"
click node_ins_directed_eval "https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/insurance/4_uniform_and_directed_graph_evaluation.py"
click node_edu_threshold "https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/educational_social_network"
click node_edu_stats "https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/educational_social_network/5_statistical_significans.py"
click node_ins_stats "https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/insurance/5_statistical_significans.py"
click node_edu_plots "https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/educational_social_network/5_varying_thresholds_plot.py"
click node_ins_plots "https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/insurance/5_varying_thresholds_plot.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_edu_prep,node_ins_prep toneBlue
class node_edu_tune,node_ins_tune,node_edu_weight,node_ins_weight,node_edu_source,node_ins_source toneAmber
class node_edu_classic,node_ins_classic,node_edu_graph_eval,node_ins_graph_eval,node_edu_directed_eval,node_ins_directed_eval,node_edu_threshold toneMint
class node_edu_stats,node_ins_stats,node_edu_plots,node_ins_plots toneRose
class node_researcher toneIndigo
```

## Components

### Data preparation

- [Education split](https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/educational_social_network/1_data_split.py): `educational_social_network/1_data_split.py`
- [Insurance preprocess](https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/insurance/1_data_preprocessing.py): `insurance/1_data_preprocessing.py`

### Model development

- [Education tuning](https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/educational_social_network): `educational_social_network`
- [Insurance tuning](https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/insurance): `insurance`
- [Education weights](https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/educational_social_network): `educational_social_network`
- [Insurance weights](https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/insurance): `insurance`

### Evaluation

- [Education baselines](https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/educational_social_network): `educational_social_network`
- [Insurance baselines](https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/insurance): `insurance`
- [Education graph eval](https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/educational_social_network/4_undirected_graph_evaluation.py): `educational_social_network/4_undirected_graph_evaluation.py`
- [Insurance graph eval](https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/insurance/4_undirected_graph_evaluation.py): `insurance/4_undirected_graph_evaluation.py`
- [Education directed eval](https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/educational_social_network/4_uniform_and_directed_graph_evaluation.py): `educational_social_network/4_uniform_and_directed_graph_evaluation.py`
- [Insurance directed eval](https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/insurance/4_uniform_and_directed_graph_evaluation.py): `insurance/4_uniform_and_directed_graph_evaluation.py`
- [Education thresholds](https://github.com/simonebbruun/genetically_optimized_graph_rs/tree/main/educational_social_network): `educational_social_network`

### Result analysis

- [Education significance](https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/educational_social_network/5_statistical_significans.py): `educational_social_network/5_statistical_significans.py`
- [Insurance significance](https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/insurance/5_statistical_significans.py): `insurance/5_statistical_significans.py`
- [Education plots](https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/educational_social_network/5_varying_thresholds_plot.py): `educational_social_network/5_varying_thresholds_plot.py`
- [Insurance plots](https://github.com/simonebbruun/genetically_optimized_graph_rs/blob/main/insurance/5_varying_thresholds_plot.py): `insurance/5_varying_thresholds_plot.py`

### Other components

- **Researcher**
- **Education data**
- **Insurance data**

## Connections

- Researcher → Education split: starts workflow (evidence: `README.md`)
- Researcher → Insurance preprocess: starts workflow (evidence: `README.md`)
- Education data → Education split: provides data
- Insurance data → Insurance preprocess: provides data
- Education split → Education tuning: then tune (evidence: `README.md`)
- Insurance preprocess → Insurance tuning: then tune (evidence: `README.md`)
- Education tuning → Education weights: then optimize (evidence: `README.md`)
- Insurance tuning → Insurance weights: then optimize (evidence: `README.md`)
- Education weights → Education graph eval: then evaluate (evidence: `README.md`)
- Education weights → Education directed eval: then evaluate (evidence: `README.md`)
- Insurance weights → Insurance graph eval: then evaluate (evidence: `README.md`)
- Insurance weights → Insurance directed eval: then evaluate (evidence: `README.md`)
- Education tuning → Education baselines: then evaluate (evidence: `README.md`)
- Insurance tuning → Insurance baselines: then evaluate (evidence: `README.md`)
- Education directed eval → Education thresholds: sweep thresholds (evidence: `README.md`)
- Education baselines → Education thresholds: sweep thresholds (evidence: `README.md`)
- Education graph eval → Education thresholds: sweep thresholds (evidence: `README.md`)
- Education thresholds → Education plots: plot measures (evidence: `README.md`)
- Education baselines → Education significance: compare results (evidence: `README.md`)
- Education graph eval → Education significance: compare results (evidence: `README.md`)
- Education directed eval → Education significance: compare results (evidence: `README.md`)
- Insurance baselines → Insurance significance: compare results (evidence: `README.md`)
- Insurance graph eval → Insurance significance: compare results (evidence: `README.md`)
- Insurance directed eval → Insurance significance: compare results (evidence: `README.md`)
- Insurance baselines → Insurance plots: plot measures (evidence: `README.md`)
- Insurance graph eval → Insurance plots: plot measures (evidence: `README.md`)
