pub struct StaticUndirected { /* private fields */ }
Implementations§
Source§impl StaticUndirected
impl StaticUndirected
pub fn new(nodes: usize) -> StaticUndirected
pub fn nodes(&self) -> usize
pub fn edges(&self) -> usize
pub fn max_degree(&self) -> usize
pub fn min_degree(&self) -> usize
pub fn get_edge<T>(&self, undirected: T) -> Result<usize, GraphError>where
T: Into<UndirectedEdge>,
pub fn mut_edge<T>(&mut self, undirected: T) -> Result<&mut usize, GraphError>where
T: Into<UndirectedEdge>,
pub fn set_edge<T>(
&mut self,
undirected: T,
connection: usize,
) -> Result<usize, GraphError>where
T: Into<UndirectedEdge>,
pub fn connect<T>(&mut self, edge: T) -> Result<usize, GraphError>where
T: Into<UndirectedEdge>,
pub fn disconnect<T>(&mut self, edge: T) -> Result<usize, GraphError>where
T: Into<UndirectedEdge>,
Trait Implementations§
Source§impl Clone for StaticUndirected
impl Clone for StaticUndirected
Source§fn clone(&self) -> StaticUndirected
fn clone(&self) -> StaticUndirected
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StaticUndirected
impl Debug for StaticUndirected
Auto Trait Implementations§
impl Freeze for StaticUndirected
impl RefUnwindSafe for StaticUndirected
impl Send for StaticUndirected
impl Sync for StaticUndirected
impl Unpin for StaticUndirected
impl UnwindSafe for StaticUndirected
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