Trait pi_graph::DirectedGraph
source · [−]pub trait DirectedGraph<K: Hash + Eq + Sized, T> {
type Node: DirectedGraphNode<K, T>;
fn get(&self, key: &K) -> Option<&Self::Node>;
fn get_mut(&mut self, key: &K) -> Option<&mut Self::Node>;
fn node_count(&self) -> usize;
fn from_len(&self) -> usize;
fn to_len(&self) -> usize;
fn from(&self) -> &[K]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8];
fn to(&self) -> &[K]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8];
fn topological_sort(&self) -> &[K]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8];
}Expand description
有向无环图 K 节点的键 T 节点的值
Required Associated Types
type Node: DirectedGraphNode<K, T>
type Node: DirectedGraphNode<K, T>
节点