pub struct Graph<E>{ /* private fields */ }Implementations§
Source§impl<E> Graph<E>
impl<E> Graph<E>
pub fn add_edge_or_reduce_weight(&mut self, from: u32, edge: E)
pub fn remove_all_incident_edges(&mut self, from: u32)
pub fn print(&self)
pub fn print_edges(&self)
pub fn print_edge_counts(&self)
Trait Implementations§
Source§impl<E> DoubleSidedGraphTrait<E> for Graph<E>
impl<E> DoubleSidedGraphTrait<E> for Graph<E>
Source§impl<E> GraphTrait<E> for Graph<E>
impl<E> GraphTrait<E> for Graph<E>
fn new(vertices: u32) -> Graph<E>
fn new_empty() -> Graph<E>
fn set_num_vertices(&mut self, vertices: u32)
fn add_edge(&mut self, from: u32, edge: E)
fn num_vertices(&self) -> u32
fn num_edges(&self) -> u32
fn out_degree(&self, vertex: u32) -> u32
fn outbound_neighbours(&self, from: u32) -> Vec<u32>
fn outbound_edge(&self, vertex: u32, i: u32) -> Option<E>
fn outbound_edges(&self, vertex: u32) -> &Vec<E>
fn get_outbound_edge_between_vertices( &self, vertex_1: u32, vertex_2: u32, ) -> Option<E>
Auto Trait Implementations§
impl<E> Freeze for Graph<E>
impl<E> RefUnwindSafe for Graph<E>where
E: RefUnwindSafe,
impl<E> Send for Graph<E>where
E: Send,
impl<E> Sync for Graph<E>where
E: Sync,
impl<E> Unpin for Graph<E>where
E: Unpin,
impl<E> UnwindSafe for Graph<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more