#[derive(Debug, Clone, PartialEq)]
pub struct Link {
pub from_node: String,
pub to_node: String,
pub route_id: String,
pub travel_cost: f64,
pub headway: f64,
}
impl Link {
pub fn new(
from_node: &str,
to_node: &str,
route_id: &str,
travel_cost: f64,
headway: f64,
) -> Self {
Link {
from_node: from_node.to_string(),
to_node: to_node.to_string(),
route_id: route_id.to_string(),
travel_cost,
headway,
}
}
}