nms_graph/lib.rs
1//! In-memory galactic model for NMS Copilot.
2//!
3//! Builds and maintains a spatial graph of all known star systems using
4//! three parallel data structures:
5//!
6//! - **petgraph** -- topology layer for pathfinding and TSP routing
7//! - **R-tree** -- geometric layer for nearest-neighbor and radius queries
8//! - **HashMaps** -- associative layer for fast lookup by name, biome, etc.
9
10pub mod edges;
11pub mod error;
12pub mod extract;
13pub mod import;
14pub mod model;
15pub mod query;
16pub mod route;
17pub mod spatial;
18
19pub use edges::EdgeStrategy;
20pub use error::GraphError;
21pub use model::GalaxyModel;
22pub use query::BiomeFilter;
23pub use route::{Route, RouteError, RouteHop, RoutingAlgorithm};
24pub use spatial::{SystemId, SystemPoint};