smart-dynamic-gravity-tsp 0.1.0

A high-performance Rust library for solving the Traveling Salesman Problem (TSP) using the novel Dynamic Gravity algorithm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Represents a city with 2D coordinates.
///
/// # Example
/// ```
/// use smart_dynamic_gravity_tsp::City;
///
/// let city = City { x: 10.0, y: 20.0 };
/// ```
#[derive(Clone, Copy, Debug)]
pub struct City {
    pub x: f64,
    pub y: f64,
}