[−][src]Trait handlegraph::mutablehandlegraph::MutableHandles
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.
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.