ch_router/
lib.rs

1mod ch;
2
3pub use ch::{ContractionHierarchy, HotGroup, Router};
4
5pub type NodeIdx = u32;
6
7#[derive(Copy, Clone)]
8pub struct Node {
9    pub x: f32,
10    pub y: f32,
11}
12
13#[derive(Copy, Clone)]
14pub struct Edge {
15    pub from: NodeIdx,
16    pub to: NodeIdx,
17    pub weight: f32,
18}