Trait graphify::graph::graph_like::GraphLike
[−]
[src]
pub trait GraphLike<TInformation> { fn add_vertex(&mut self, information: TInformation) -> usize; fn breadth_first_search<TFn>(&self, func: TFn)
where
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); 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); }
Required Methods
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)
Implementors
impl<TInformation> GraphLike<TInformation> for Graph<TInformation>
impl GraphLike<()> for GraphifyGraph