[][src]Trait caminos_lib::routing::SourceRouting

pub trait SourceRouting {
    pub fn initialize(
        &mut self,
        topology: &Box<dyn Topology>,
        rng: &RefCell<StdRng>
    );
pub fn get_paths(&self, source: usize, target: usize) -> &Vec<Vec<usize>>; }

Trait for Routings that build the whole route at source. This includes routings such as K-shortest paths. But I have all my implementations depending on a private algorithm, so they are not yet here. They will all be released when the dependency is formally published.

Required methods

pub fn initialize(
    &mut self,
    topology: &Box<dyn Topology>,
    rng: &RefCell<StdRng>
)
[src]

pub fn get_paths(&self, source: usize, target: usize) -> &Vec<Vec<usize>>[src]

Loading content...

Implementors

Loading content...