catlog::one::graph

Trait MutColumnarGraph

Source
pub trait MutColumnarGraph: ColumnarGraph<Src: MutMapping<Dom = Self::E, Cod = Self::V>, Tgt: MutMapping<Dom = Self::E, Cod = Self::V>> {
    // Required methods
    fn src_map_mut(&mut self) -> &mut Self::Src;
    fn tgt_map_mut(&mut self) -> &mut Self::Tgt;

    // Provided methods
    fn set_src(&mut self, e: Self::E, v: Self::V) -> Option<Self::V> { ... }
    fn set_tgt(&mut self, e: Self::E, v: Self::V) -> Option<Self::V> { ... }
}
Expand description

A columnar graph with mutable columns.

Required Methods§

Source

fn src_map_mut(&mut self) -> &mut Self::Src

Variant of src_map that returns a mutable reference.

Source

fn tgt_map_mut(&mut self) -> &mut Self::Tgt

Variant of tgt_map that returns a mutable reference.

Provided Methods§

Source

fn set_src(&mut self, e: Self::E, v: Self::V) -> Option<Self::V>

Sets the source of an edge.

Source

fn set_tgt(&mut self, e: Self::E, v: Self::V) -> Option<Self::V>

Sets the target of an edge.

Implementors§

Source§

impl MutColumnarGraph for SkelGraph

Source§

impl<V, E, S> MutColumnarGraph for HashGraph<V, E, S>
where V: Eq + Hash + Clone, E: Eq + Hash + Clone, S: BuildHasher,