routee-compass-core 0.7.0

The core routing algorithms and data structures of the RouteE-Compass energy-aware routing engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::search_tree_branch::SearchTreeBranch;
use crate::model::road_network::vertex_id::VertexId;
use std::collections::HashMap;

#[derive(Default)]
pub struct SearchResult {
    pub tree: HashMap<VertexId, SearchTreeBranch>,
    pub iterations: u64,
}

impl SearchResult {
    pub fn new(tree: HashMap<VertexId, SearchTreeBranch>, iterations: u64) -> SearchResult {
        SearchResult { tree, iterations }
    }
}