# m-agour/resplan architecture

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

- Interactive diagram: https://gitdiagram.com/m-agour/resplan
- Repository: https://github.com/m-agour/resplan

## Overview

ResPlan is a residential-floor-plan dataset release with utility code and reproducible research baselines—not a deployed application. Its main user workflow is to load a plan, inspect its geometry, optionally construct the paper-compatible connectivity graph, and use the plans and canonical splits in semantic-labeling, constrained-generation, or plan-to-graph experiments. The graph preserves those documented branches and the README’s cross-dataset capability. Some baseline implementations were not sampled, so their internal relationships are not inferred.

Main entry points: [`ResPlan.zip`](https://github.com/m-agour/resplan/blob/main/ResPlan.zip) (Plan Geometry), [`split.json`](https://github.com/m-agour/resplan/blob/main/split.json) (Canonical Splits), [`resplan_utils.py`](https://github.com/m-agour/resplan/blob/main/resplan_utils.py) (Strict Graph Build), [`baselines/task2_baselines.py`](https://github.com/m-agour/resplan/blob/main/baselines/task2_baselines.py) (Labeling Baselines)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Dataset"]
  node_plans[("Plan Geometry<br/>[ResPlan.zip]")]
  node_splits["Canonical Splits<br/>[split.json]"]
  node_metadata["Dataset Metadata<br/>[croissant.json]"]
end

subgraph group_utilities["Plan Utilities"]
  node_plotting["Plan Plotting<br/>[resplan_utils.py]"]
  node_graph_build["Strict Graph Build<br/>[resplan_utils.py]"]
  node_graph_adjust["Adjacency Conversion<br/>[resplan_utils.py]"]
end

subgraph group_labeling["Room Labeling"]
  node_label_baselines["Labeling Baselines<br/>[task2_baselines.py]"]
  node_label_arch["Modern Graph Models"]
  node_label_ablation["Feature and Architecture Ablations<br/>[task2_ablation.py]"]
end

subgraph group_generation["Plan Generation"]
  node_generation["Conditional Generation"]
  node_retrieval["Plan Retrieval<br/>[task1_retrieval.py]"]
end

subgraph group_extraction["Graph Extraction and Transfer"]
  node_plan2graph["Geometry to Graph"]
  node_edge_classifier["Edge Type Classifier"]
  node_cross_dataset["Cross-Dataset Evaluation"]
  node_domain_adapt["Domain Adaptation"]
end

node_researcher(("Researcher"))

node_researcher -->|"loads"| node_plans
node_researcher -->|"selects plans"| node_splits
node_plans -->|"plots geometry"| node_plotting
node_plans -->|"constructs graph"| node_graph_build
node_graph_build -->|"converts taxonomy"| node_graph_adjust
node_plans -->|"labels rooms"| node_label_baselines
node_splits -->|"partitions data"| node_label_baselines
node_plans -->|"compares models"| node_label_arch
node_plans -->|"ablates features"| node_label_ablation
node_plans -->|"conditions generation"| node_generation
node_splits -->|"partitions data"| node_generation
node_plans -->|"retrieves plans"| node_retrieval
node_plans -->|"extracts connectivity"| node_plan2graph
node_plans -->|"classifies edge types"| node_edge_classifier
node_plans -->|"evaluates transfer"| node_cross_dataset
node_plans -->|"fine-tunes across domains"| node_domain_adapt

click node_plans "https://github.com/m-agour/resplan/blob/main/ResPlan.zip"
click node_splits "https://github.com/m-agour/resplan/blob/main/split.json"
click node_metadata "https://github.com/m-agour/resplan/blob/main/croissant.json"
click node_plotting "https://github.com/m-agour/resplan/blob/main/resplan_utils.py"
click node_graph_build "https://github.com/m-agour/resplan/blob/main/resplan_utils.py"
click node_graph_adjust "https://github.com/m-agour/resplan/blob/main/resplan_utils.py"
click node_label_baselines "https://github.com/m-agour/resplan/blob/main/baselines/task2_baselines.py"
click node_label_arch "https://github.com/m-agour/resplan/blob/main/baselines/task1_modern_arch.py"
click node_label_ablation "https://github.com/m-agour/resplan/blob/main/baselines/task2_ablation.py"
click node_generation "https://github.com/m-agour/resplan/blob/main/baselines/task1_generation.py"
click node_retrieval "https://github.com/m-agour/resplan/blob/main/baselines/task1_retrieval.py"
click node_plan2graph "https://github.com/m-agour/resplan/blob/main/baselines/task3_plan2graph.py"
click node_edge_classifier "https://github.com/m-agour/resplan/blob/main/baselines/task3_edge_classifier.py"
click node_cross_dataset "https://github.com/m-agour/resplan/blob/main/baselines/task2_cross_dataset.py"
click node_domain_adapt "https://github.com/m-agour/resplan/blob/main/baselines/task2_domain_adapt.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_plans,node_splits,node_metadata toneBlue
class node_plotting,node_graph_build,node_graph_adjust toneAmber
class node_label_baselines,node_label_arch,node_label_ablation toneMint
class node_generation,node_retrieval toneRose
class node_plan2graph,node_edge_classifier,node_cross_dataset,node_domain_adapt,node_researcher toneIndigo
```

## Components

### Dataset

- [Plan Geometry](https://github.com/m-agour/resplan/blob/main/ResPlan.zip): `ResPlan.zip`
- [Canonical Splits](https://github.com/m-agour/resplan/blob/main/split.json): `split.json`
- [Dataset Metadata](https://github.com/m-agour/resplan/blob/main/croissant.json): `croissant.json`

### Plan Utilities

- [Plan Plotting](https://github.com/m-agour/resplan/blob/main/resplan_utils.py): `resplan_utils.py`
- [Strict Graph Build](https://github.com/m-agour/resplan/blob/main/resplan_utils.py): `resplan_utils.py`
- [Adjacency Conversion](https://github.com/m-agour/resplan/blob/main/resplan_utils.py): `resplan_utils.py`

### Room Labeling

- [Labeling Baselines](https://github.com/m-agour/resplan/blob/main/baselines/task2_baselines.py): `baselines/task2_baselines.py`
- [Modern Graph Models](https://github.com/m-agour/resplan/blob/main/baselines/task1_modern_arch.py): `baselines/task1_modern_arch.py`
- [Feature and Architecture Ablations](https://github.com/m-agour/resplan/blob/main/baselines/task2_ablation.py): `baselines/task2_ablation.py`

### Plan Generation

- [Conditional Generation](https://github.com/m-agour/resplan/blob/main/baselines/task1_generation.py): `baselines/task1_generation.py`
- [Plan Retrieval](https://github.com/m-agour/resplan/blob/main/baselines/task1_retrieval.py): `baselines/task1_retrieval.py`

### Graph Extraction and Transfer

- [Geometry to Graph](https://github.com/m-agour/resplan/blob/main/baselines/task3_plan2graph.py): `baselines/task3_plan2graph.py`
- [Edge Type Classifier](https://github.com/m-agour/resplan/blob/main/baselines/task3_edge_classifier.py): `baselines/task3_edge_classifier.py`
- [Cross-Dataset Evaluation](https://github.com/m-agour/resplan/blob/main/baselines/task2_cross_dataset.py): `baselines/task2_cross_dataset.py`
- [Domain Adaptation](https://github.com/m-agour/resplan/blob/main/baselines/task2_domain_adapt.py): `baselines/task2_domain_adapt.py`

### Other components

- **Researcher**

## Connections

- Researcher → Plan Geometry: loads (evidence: `README.md`)
- Researcher → Canonical Splits: selects plans (evidence: `README.md`)
- Plan Geometry → Plan Plotting: plots geometry (evidence: `README.md`)
- Plan Geometry → Strict Graph Build: constructs graph (evidence: `README.md`)
- Strict Graph Build → Adjacency Conversion: converts taxonomy (evidence: `README.md`)
- Plan Geometry → Labeling Baselines: labels rooms (evidence: `baselines/task2_baselines.py`)
- Canonical Splits → Labeling Baselines: partitions data (evidence: `baselines/task2_baselines.py`)
- Plan Geometry → Modern Graph Models: compares models (evidence: `README.md`)
- Plan Geometry → Feature and Architecture Ablations: ablates features (evidence: `README.md`)
- Plan Geometry → Conditional Generation: conditions generation (evidence: `baselines/task1_generation.py`)
- Canonical Splits → Conditional Generation: partitions data (evidence: `baselines/task1_generation.py`)
- Plan Geometry → Plan Retrieval: retrieves plans (evidence: `README.md`)
- Plan Geometry → Geometry to Graph: extracts connectivity (evidence: `README.md`)
- Plan Geometry → Edge Type Classifier: classifies edge types (evidence: `baselines/task3_edge_classifier.py`)
- Plan Geometry → Cross-Dataset Evaluation: evaluates transfer (evidence: `README.md`)
- Plan Geometry → Domain Adaptation: fine-tunes across domains (evidence: `baselines/task2_domain_adapt.py`)
