smart-pch-tsp 0.1.0

Universal TSP path improver using PCH (Position-Candidate-Hypothesis) paradigm with statistical path synthesis.
Documentation
//! Default City implementation.

use super::point::Point;

/// Default city implementation with x and y coordinates.
#[derive(Clone, Copy, Debug)]
pub struct City {
    pub x: f64,
    pub y: f64,
}

impl Point for City {
    fn x(&self) -> f64 {
        self.x
    }
    fn y(&self) -> f64 {
        self.y
    }
}