pub trait WithGraph<T, G> {
    fn at(&self, index: usize) -> &T;
    fn at_mut(&mut self, index: usize) -> &mut T;
    fn graph(&self) -> &G;
    fn sort_adj(&mut self);
}
Expand description

unify graph ensembles in a trait

Required Methods

  • access additional information at index
  • mutable access to additional information at index
  • returns reference to the underlying topology aka, the GenericGraph
  • use this to call functions regarding the topology
  • sorts Adjecaency List

Implementors