-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.rs
30 lines (24 loc) · 929 Bytes
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/// Generates minimum spanning trees using Prim's algorithm. Works
/// on all graphs that can be generated by the graph_gen module.
pub mod mst;
/// Contains a binary-heap that's been specially adapted for use
/// with Prim's or Dijkstra's algorithm.
mod prim_heap;
pub use prim_heap::Weight;
/// Generates complete graphs of various dimensions
/// based on the problem set specification.
/// - One dimensional graphs have fixed IDs and random weights.
/// - [2, 3, 4] dimensional graphs have random coordinates and
/// edge weights determined by distance.
pub mod graph_gen;
/// Handlers and data types for responding to user input.
pub mod cli;
/// Contains an abstraction over floating point
/// numbers that allows them to be safely used as keys in
/// a hash map.
mod decimal;
/// Defines a crate-wide error type.
pub mod error;
/// Retrieves bulk data for tests (mostly used by prim_heap)
#[cfg(test)]
mod test_data;