GraphLog

Trait GraphLog 

Source
pub trait GraphLog<K: Clone + Eq + Hash> {
    // Required methods
    fn add_node(
        &mut self,
        id: &K,
        edges: &[GraphEdge<K>],
        node_symbol: &str,
        text: &str,
    ) -> Result<()>;
    fn width(&self, id: &K, edges: &[GraphEdge<K>]) -> usize;
}

Required Methods§

Source

fn add_node( &mut self, id: &K, edges: &[GraphEdge<K>], node_symbol: &str, text: &str, ) -> Result<()>

Source

fn width(&self, id: &K, edges: &[GraphEdge<K>]) -> usize

Implementors§

Source§

impl<K, R> GraphLog<K> for SaplingGraphLog<'_, R>
where K: Clone + Eq + Hash, R: Renderer<K, Output = String>,