pub struct NGraphBuilder<K: Key, T> { /* private fields */ }Expand description
图 构建器
Implementations§
Source§impl<K: Key, T> NGraphBuilder<K, T>
impl<K: Key, T> NGraphBuilder<K, T>
Sourcepub fn new_with_graph(graph: NGraph<K, T>) -> Self
pub fn new_with_graph(graph: NGraph<K, T>) -> Self
用已有的图 重新 构建
pub fn graph(&self) -> &NGraph<K, T>
Sourcepub fn remove_node(&mut self, key: K) -> &mut Self
pub fn remove_node(&mut self, key: K) -> &mut Self
移除 节点
Sourcepub fn remove_edge(&mut self, from: K, to: K) -> &mut Self
pub fn remove_edge(&mut self, from: K, to: K) -> &mut Self
移除 边
Auto Trait Implementations§
impl<K, T> Freeze for NGraphBuilder<K, T>
impl<K, T> RefUnwindSafe for NGraphBuilder<K, T>where
K: RefUnwindSafe,
T: RefUnwindSafe,
impl<K, T> Send for NGraphBuilder<K, T>
impl<K, T> Sync for NGraphBuilder<K, T>
impl<K, T> Unpin for NGraphBuilder<K, T>
impl<K, T> UnwindSafe for NGraphBuilder<K, T>where
K: UnwindSafe,
T: 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