# eva-zupanc/orprojekt architecture

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

- Interactive diagram: https://gitdiagram.com/eva-zupanc/orprojekt
- Repository: https://github.com/eva-zupanc/orprojekt

## Overview

This repository is a computational graph-theory project studying the largest induced 2-regular subgraphs of cubic graphs and the quantity delta = c_ind(G) - n/2. Its workflows either analyze selected graph families, generate or load graph collections, or search graph space with simulated annealing; results are summarized and commonly written to CSV. The excerpts show the optimizer and several family-specific workflows. Other files and their wiring are not sampled, so those links are omitted rather than inferred.

Main entry points: [`funkcija_c_ind_networkx.py`](https://github.com/eva-zupanc/orprojekt/blob/main/funkcija_c_ind_networkx.py) (Induced-set optimizer), [`posebni_grafi.py`](https://github.com/eva-zupanc/orprojekt/blob/main/posebni_grafi.py) (Family review), [`planarni_grafi.py`](https://github.com/eva-zupanc/orprojekt/blob/main/planarni_grafi.py) (Planar graphs), [`velik_girth.py`](https://github.com/eva-zupanc/orprojekt/blob/main/velik_girth.py) (Large-girth graphs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Graph analysis"]
  node_optimizer_nx["Induced-set optimizer"]
  node_optimizer_sparse["Sparse optimizer<br/>[funkcija_c_ind.py]"]
end

subgraph group_families["Graph families"]
  node_special_review["Family review<br/>[posebni_grafi.py]"]
  node_basic_graphs["Basic graphs<br/>[osnovni_grafi.py]"]
  node_petersen_graphs["Petersen graphs"]
  node_planar_graphs["Planar graphs<br/>[planarni_grafi.py]"]
  node_snark_graphs["Snarks<br/>[snarki.py]"]
  node_girth_graphs["Large-girth graphs<br/>[velik_girth.py]"]
  node_girth6_graphs["Girth 6+ graphs<br/>[velik_girth_6+.py]"]
end

subgraph group_search["Graph search"]
  node_annealing["Annealing search"]
end

subgraph group_results["Results"]
  node_csv_results[("CSV results")]
end

node_researcher(("Researcher"))
node_nauty{{"nauty-geng"}}
node_plantri{{"plantri"}}

node_researcher -->|"selects family"| node_special_review
node_special_review -->|"computes c_ind"| node_optimizer_nx
node_special_review -->|"runs generator"| node_nauty
node_researcher -->|"runs examples"| node_basic_graphs
node_basic_graphs -->|"computes c_ind"| node_optimizer_nx
node_researcher -->|"runs study"| node_petersen_graphs
node_petersen_graphs -->|"computes c_ind"| node_optimizer_nx
node_researcher -->|"runs study"| node_planar_graphs
node_planar_graphs -->|"computes c_ind"| node_optimizer_nx
node_planar_graphs -->|"runs generator"| node_plantri
node_researcher -->|"runs study"| node_snark_graphs
node_snark_graphs -->|"computes c_ind"| node_optimizer_nx
node_researcher -->|"runs study"| node_girth_graphs
node_girth_graphs -->|"computes c_ind"| node_optimizer_nx
node_girth_graphs -->|"runs generator"| node_nauty
node_researcher -->|"runs study"| node_girth6_graphs
node_girth6_graphs -->|"computes c_ind"| node_optimizer_nx
node_researcher -->|"starts search"| node_annealing
node_annealing -->|"scores graphs"| node_optimizer_nx
node_special_review -->|"writes summaries"| node_csv_results
node_planar_graphs -->|"writes results"| node_csv_results
node_snark_graphs -->|"writes results"| node_csv_results
node_girth_graphs -->|"writes results"| node_csv_results
node_girth6_graphs -->|"writes results"| node_csv_results

click node_special_review "https://github.com/eva-zupanc/orprojekt/blob/main/posebni_grafi.py"
click node_basic_graphs "https://github.com/eva-zupanc/orprojekt/blob/main/osnovni_grafi.py"
click node_petersen_graphs "https://github.com/eva-zupanc/orprojekt/blob/main/petersenovi_grafi.py"
click node_planar_graphs "https://github.com/eva-zupanc/orprojekt/blob/main/planarni_grafi.py"
click node_snark_graphs "https://github.com/eva-zupanc/orprojekt/blob/main/snarki.py"
click node_girth_graphs "https://github.com/eva-zupanc/orprojekt/blob/main/velik_girth.py"
click node_girth6_graphs "https://github.com/eva-zupanc/orprojekt/blob/main/velik_girth_6%2B.py"
click node_optimizer_nx "https://github.com/eva-zupanc/orprojekt/blob/main/funkcija_c_ind_networkx.py"
click node_optimizer_sparse "https://github.com/eva-zupanc/orprojekt/blob/main/funkcija_c_ind.py"
click node_annealing "https://github.com/eva-zupanc/orprojekt/blob/main/simulirano_ohlajanje.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_optimizer_nx,node_optimizer_sparse toneBlue
class node_special_review,node_basic_graphs,node_petersen_graphs,node_planar_graphs,node_snark_graphs,node_girth_graphs,node_girth6_graphs toneAmber
class node_annealing toneMint
class node_csv_results toneRose
class node_researcher,node_nauty,node_plantri toneIndigo
```

## Components

### Graph analysis

- [Induced-set optimizer](https://github.com/eva-zupanc/orprojekt/blob/main/funkcija_c_ind_networkx.py): `funkcija_c_ind_networkx.py`
- [Sparse optimizer](https://github.com/eva-zupanc/orprojekt/blob/main/funkcija_c_ind.py): `funkcija_c_ind.py`

### Graph families

- [Family review](https://github.com/eva-zupanc/orprojekt/blob/main/posebni_grafi.py): `posebni_grafi.py`
- [Basic graphs](https://github.com/eva-zupanc/orprojekt/blob/main/osnovni_grafi.py): `osnovni_grafi.py`
- [Petersen graphs](https://github.com/eva-zupanc/orprojekt/blob/main/petersenovi_grafi.py): `petersenovi_grafi.py`
- [Planar graphs](https://github.com/eva-zupanc/orprojekt/blob/main/planarni_grafi.py): `planarni_grafi.py`
- [Snarks](https://github.com/eva-zupanc/orprojekt/blob/main/snarki.py): `snarki.py`
- [Large-girth graphs](https://github.com/eva-zupanc/orprojekt/blob/main/velik_girth.py): `velik_girth.py`
- [Girth 6+ graphs](https://github.com/eva-zupanc/orprojekt/blob/main/velik_girth_6%2B.py): `velik_girth_6+.py`

### Graph search

- [Annealing search](https://github.com/eva-zupanc/orprojekt/blob/main/simulirano_ohlajanje.py): `simulirano_ohlajanje.py`

### Results

- **CSV results**

### Other components

- **Researcher**
- **nauty-geng**
- **plantri**

## Connections

- Researcher → Family review: selects family (evidence: `posebni_grafi.py`)
- Family review → Induced-set optimizer: computes c_ind (evidence: `posebni_grafi.py`)
- Family review → nauty-geng: runs generator (evidence: `posebni_grafi.py`)
- Researcher → Basic graphs: runs examples (evidence: `osnovni_grafi.py`)
- Basic graphs → Induced-set optimizer: computes c_ind (evidence: `osnovni_grafi.py`)
- Researcher → Petersen graphs: runs study (evidence: `petersenovi_grafi.py`)
- Petersen graphs → Induced-set optimizer: computes c_ind (evidence: `petersenovi_grafi.py`)
- Researcher → Planar graphs: runs study (evidence: `planarni_grafi.py`)
- Planar graphs → Induced-set optimizer: computes c_ind (evidence: `planarni_grafi.py`)
- Planar graphs → plantri: runs generator (evidence: `planarni_grafi.py`)
- Researcher → Snarks: runs study (evidence: `snarki.py`)
- Snarks → Induced-set optimizer: computes c_ind (evidence: `snarki.py`)
- Researcher → Large-girth graphs: runs study (evidence: `velik_girth.py`)
- Large-girth graphs → Induced-set optimizer: computes c_ind (evidence: `velik_girth.py`)
- Large-girth graphs → nauty-geng: runs generator (evidence: `velik_girth.py`)
- Researcher → Girth 6+ graphs: runs study (evidence: `velik_girth_6+.py`)
- Girth 6+ graphs → Induced-set optimizer: computes c_ind (evidence: `velik_girth_6+.py`)
- Researcher → Annealing search: starts search (evidence: `simulirano_ohlajanje.py`)
- Annealing search → Induced-set optimizer: scores graphs (evidence: `simulirano_ohlajanje.py`)
- Family review → CSV results: writes summaries (evidence: `posebni_grafi.py`)
- Planar graphs → CSV results: writes results (evidence: `planarni_grafi.py`)
- Snarks → CSV results: writes results (evidence: `snarki.py`)
- Large-girth graphs → CSV results: writes results (evidence: `velik_girth.py`)
- Girth 6+ graphs → CSV results: writes results (evidence: `velik_girth_6+.py`)
