Utilities and static assets for processing and visualizing sector/node graph data for X4: Foundations.
x4-map.json- Source map data.sectors.json- Sector-focused extracted data.shortest_paths.json- Computed shortest path results.summed_distances.json- Computed summed-distance metrics.x4-map-json-processor.py- Preprocessing script for map JSON.x4-node-dijkstra.py- Dijkstra-based shortest path calculation script.x4-map-visualization.html- Browser-based visualization.
- Python 3.9+
- No third-party dependencies are required unless you extend the scripts.
-
Place or update input data in
x4-map.json. -
Run the processing scripts:
python x4-map-json-processor.py python x4-node-dijkstra.py
-
Start a local web server from the repository root:
python -m http.server 8000
-
Open
http://localhost:8000/x4-map-visualization.htmlin your browser to inspect the generated map data.
- The generated JSON files in this repository are intended as precomputed artifacts for faster visualization.
- If map data format changes, rerun the Python scripts to regenerate derived files.
This project is licensed under the MIT License. See LICENSE.
- Map data from https://www.qsna.eu/x4/map