Skip to main content

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 model;
14pub mod query;
15pub mod route;
16pub mod spatial;
17
18pub use edges::EdgeStrategy;
19pub use error::GraphError;
20pub use model::GalaxyModel;
21pub use query::BiomeFilter;
22pub use route::{Route, RouteError, RouteHop, RoutingAlgorithm};
23pub use spatial::{SystemId, SystemPoint};