Struct pi_graph::NGraphBuilder
source · [−]Expand description
图 构建器
Implementations
sourceimpl<K: Hash + Eq + Sized + Clone + Debug, T> NGraphBuilder<K, T>
impl<K: Hash + Eq + Sized + Clone + Debug, T> NGraphBuilder<K, T>
sourcepub fn new_with_graph(graph: NGraph<K, T>) -> Self
pub fn new_with_graph(graph: NGraph<K, T>) -> Self
用已有的图 重新 构建
sourcepub fn remove_node(self, key: &K) -> Self
pub fn remove_node(self, key: &K) -> Self
移除 节点
sourcepub fn remove_edge(self, from: &K, to: &K) -> Self
pub fn remove_edge(self, from: &K, to: &K) -> Self
移除 边
Auto Trait Implementations
impl<K, T> RefUnwindSafe for NGraphBuilder<K, T> where
K: RefUnwindSafe,
T: RefUnwindSafe,
impl<K, T> Send for NGraphBuilder<K, T> where
K: Send,
T: Send,
impl<K, T> Sync for NGraphBuilder<K, T> where
K: Sync,
T: Sync,
impl<K, T> Unpin for NGraphBuilder<K, T> where
K: Unpin,
T: Unpin,
impl<K, T> UnwindSafe for NGraphBuilder<K, T> where
K: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more