[][src]Trait handlegraph::mutablehandlegraph::MutableHandles

pub trait MutableHandles: AdditiveHandleGraph {
    fn divide_handle(
        &mut self,
        handle: Handle,
        offsets: &[usize]
    ) -> Vec<Handle>;
fn apply_orientation(&mut self, handle: Handle) -> Handle; fn split_handle(
        &mut self,
        handle: Handle,
        offset: usize
    ) -> (Handle, Handle) { ... } }

Methods for manipulating handles that already exist in a graph.

Required methods

fn divide_handle(&mut self, handle: Handle, offsets: &[usize]) -> Vec<Handle>[src]

Divide the given handle at the provided offsets, in terms of the node's sequence. Creates offsets.len() - 1 new handles, and updates the edges accordingly.

Implementations should update paths that include a step on handle by inserting the new handles after that step.

fn apply_orientation(&mut self, handle: Handle) -> Handle[src]

Transform the node that handle corresponds to so that the orientation of handle becomes the node's forward orientation. I.e. if handle is reverse, the node will be reversed. Returns the new handle.

Loading content...

Provided methods

fn split_handle(&mut self, handle: Handle, offset: usize) -> (Handle, Handle)[src]

Divide the given handle at the provided offset, creating one new handle. Default implementation uses divide_handle(), and there's probably no need to provide another implementation.

Implementations should update paths that include a step on handle by inserting the new handles after that step.

Loading content...

Implementors

impl MutableHandles for HashGraph[src]

impl MutableHandles for PackedGraph[src]

Loading content...