pub struct NGraph<K: Key, T> { /* private fields */ }Expand description
图
Implementations§
Trait Implementations§
Source§impl<K: Key, T> DirectedGraph<K, T> for NGraph<K, T>
impl<K: Key, T> DirectedGraph<K, T> for NGraph<K, T>
Source§type Node = NGraphNode<K, T>
type Node = NGraphNode<K, T>
节点
Source§fn node_count(&self) -> usize
fn node_count(&self) -> usize
取节点的数量
Source§fn topological_sort(&self) -> &[K]
fn topological_sort(&self) -> &[K]
拓扑排序
Auto Trait Implementations§
impl<K, T> Freeze for NGraph<K, T>
impl<K, T> RefUnwindSafe for NGraph<K, T>where
K: RefUnwindSafe,
T: RefUnwindSafe,
impl<K, T> Send for NGraph<K, T>
impl<K, T> Sync for NGraph<K, T>
impl<K, T> Unpin for NGraph<K, T>
impl<K, T> UnwindSafe for NGraph<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