DirectedGraphNode

Trait DirectedGraphNode 

Source
pub trait DirectedGraphNode<K: Key, T> {
    // Required methods
    fn from_len(&self) -> usize;
    fn to_len(&self) -> usize;
    fn from(&self) -> &[K];
    fn to(&self) -> &[K];
    fn key(&self) -> &K;
    fn value(&self) -> &T;
    fn value_mut(&mut self) -> &mut T;
}
Expand description

有向无环图 节点

Required Methods§

Source

fn from_len(&self) -> usize

取 from节点 的 数量

Source

fn to_len(&self) -> usize

取 to节点 的 数量

Source

fn from(&self) -> &[K]

取 入点 的 切片

Source

fn to(&self) -> &[K]

取 出点 的 切片

Source

fn key(&self) -> &K

取键的引用

Source

fn value(&self) -> &T

取值的引用

Source

fn value_mut(&mut self) -> &mut T

取值的可变引用

Implementors§

Source§

impl<K: Key, T> DirectedGraphNode<K, T> for NGraphNode<K, T>