pub struct GFAungraph(pub Graph<usize, (), Undirected>);Expand description
A wrapper of petgraph’s undirected Graph struct, applied to a GFA. No weights.
Tuple Fields
0: Graph<usize, (), Undirected>Implementations
sourceimpl GFAungraph
impl GFAungraph
sourcepub fn recursive_search(
&self,
sequence_id: Vec<usize>,
iterations: i32,
collect_sequence_names: Vec<NodeIndex>,
graph_indices: GFAGraphLookups
) -> Result<Vec<usize>>
pub fn recursive_search(
&self,
sequence_id: Vec<usize>,
iterations: i32,
collect_sequence_names: Vec<NodeIndex>,
graph_indices: GFAGraphLookups
) -> Result<Vec<usize>>
The algorithm called in gfatk extract.
The number of iterations of searching for neighbouring nodes can be modified.
It’s a naive algorithm, but it’s fast enough for our purposes.
Auto Trait Implementations
impl RefUnwindSafe for GFAungraph
impl Send for GFAungraph
impl Sync for GFAungraph
impl Unpin for GFAungraph
impl UnwindSafe for GFAungraph
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more