How lorenzosciandra/graphconvolutionalbranchandbound works
This repository implements a Traveling Salesman Problem solver combining Concorde’s exact branch-and-bound machinery with graph-neural-network guidance; it also contains a 1-tree solver and related GNN tooling. The principal workflow is to supply a TSP instance, use a learned optimality score to guide search, and return a tour. README statements support the high-level hybrid links; source-index references support only a subset of implementation links, so unverified runtime wiring is omitted.
Main entry points: tsp_lp.c Exact Search · inference.py Learned Scoring · runner.py Hybrid Runner · main.c 1-tree Entry
Components 18
Hybrid Guidance
- Hybrid Runner
src/HybridSolver/Concorde/runner.py - Learned Scoring
src/HybridSolver/Concorde/models/unsupervised gnn training/inference.py
GNN Learning
- Training Dataset
src/HybridSolver/Concorde/models/dataset.py - GNN Model
src/HybridSolver/Concorde/models/model.py - GCN Pipeline
src/HybridSolver/1tree/main/graph-convnet-tsp/main.py - Beam Search
src/HybridSolver/1tree/main/graph-convnet-tsp/utils/beamsearch.py
Concorde Solver
- Exact Search
src/HybridSolver/Concorde/src/TSP/tsp_lp.c - TSP Search Model
src/HybridSolver/Concorde/src/INCLUDE/tsp.h - Candidate Edges
src/HybridSolver/Concorde/src/EDGEGEN/edgegen.c - Tour Improvement
src/HybridSolver/Concorde/src/LINKERN/linkern.c - Cut Verification
src/HybridSolver/Concorde/src/VERIFY/verify.c - Tiny TSP Solver
src/HybridSolver/Concorde/src/TINY/tinytsp.c
1-tree Solver
- 1-tree Entry
src/HybridSolver/1tree/main/main.c - 1-tree Branching
src/HybridSolver/1tree/main/algorithms/branch_and_bound.c - Instance Reader
src/HybridSolver/1tree/main/tsp_instance_reader.c - Graph Structures
src/HybridSolver/1tree/main/data_structures/graph.c
Other components
- TSP User
- TSP Instance
Connections 16
- TSP User → Hybrid Runner: submits instance
- TSP Instance → Hybrid Runner: provides input
- Hybrid Runner → Learned Scoring: uses guidance
- Hybrid Runner → Exact Search: runs exact search
- Learned Scoring → Exact Search: guides node ordering
- Exact Search → TSP User: returns tour
- Learned Scoring → Training Dataset: loads dataset
src/HybridSolver/Concorde/models/unsupervised gnn training/inference.py - Learned Scoring → GNN Model: initializes model
src/HybridSolver/Concorde/models/unsupervised gnn training/inference.py - GCN Pipeline → Beam Search: uses beam search
- Exact Search → TSP Search Model: uses search structures
src/HybridSolver/Concorde/src/TSP/tsp_lp.c - Exact Search → Candidate Edges: generates edges
- Exact Search → Tour Improvement: improves tours
- Exact Search → Cut Verification: checks cuts
- 1-tree Entry → Instance Reader: reads instance
- 1-tree Entry → 1-tree Branching: starts branching
- 1-tree Branching → Graph Structures: uses graph data