Commit graph

3 commits

Author SHA1 Message Date
Michael Winter b89ff9c184 Add hamiltonian weight to favor unvisited nodes
- Add 'hamiltonian' option to weights config (default True)
- In edge weight calculation: boost unvisited nodes (10x), penalize visited (0.1x)
- Path now extends longer before getting stuck
2026-03-13 01:06:57 +01:00
Michael Winter fa19b7877f Clean up unused code
- Remove unused methods: generate_connected_sets_with_edges,
  build_graph_lattice_method, _compute_edge_data_fast, _wrap_pitch, _toCHS
- Remove unused import: product from itertools
- Remove old notebook files: compact_sets_optimized_2.py, compact_sets_optimized_2.ipynb
- Keep session-ses_328e.md for reference

compact_sets.py: 1450 -> 1067 lines
2026-03-13 00:55:27 +01:00
Michael Winter 875ffb30f5 Initial commit: convert notebook to Python file 2026-03-10 14:40:15 +01:00