Struct graphify::graph::graph::Graph
[−]
[src]
pub struct Graph<TInformation> { /* fields omitted */ }
Methods
impl<TInformation> Graph<TInformation>
[src]
fn defragment(&mut self) -> Vec<usize>
fn new() -> Graph<TInformation>
Trait Implementations
impl<TInformation> GraphLike<TInformation> for Graph<TInformation>
[src]
fn add_vertex(&mut self, information: TInformation) -> usize
fn breadth_first_search<TFn>(&self, func: TFn) where
TFn: FnMut(usize),
TFn: FnMut(usize),
fn connect_vertices(&mut self, from_vertex_id: usize, to_vertex_id: usize)
fn depth_first_search<TFn>(&self, func: TFn) where
TFn: FnMut(usize),
TFn: FnMut(usize),
fn disconnect_vertices(&mut self, from_vertex_id: usize, to_vertex_id: usize)
fn get_end_vertex_ids(&self) -> Vec<usize>
fn get_start_vertex_ids(&self) -> Vec<usize>
fn get_vertex(&self, vertex_id: usize) -> &ReadableVertex
fn get_vertex_ids(&self) -> Vec<usize>
fn remove_vertex(&mut self, vertex_id: usize)
impl<TInformation> InformationProvider<TInformation> for Graph<TInformation>
[src]
fn get_all_information(&self) -> Vec<&TInformation>
fn get_all_information_mut<'a>(&'a mut self) -> Vec<&'a mut TInformation>
fn get_information(&self, vertex_id: usize) -> &TInformation
fn get_information_mut<'a>(
&'a mut self,
vertex_id: usize
) -> &'a mut TInformation
&'a mut self,
vertex_id: usize
) -> &'a mut TInformation