vg
tools for working with variation graphs
|
#include <traversal_finder.hpp>
Public Member Functions | |
TrivialTraversalFinder (const HandleGraph &graph) | |
virtual | ~TrivialTraversalFinder ()=default |
virtual vector< SnarlTraversal > | find_traversals (const Snarl &site) |
Public Member Functions inherited from vg::TraversalFinder | |
virtual | ~TraversalFinder ()=default |
virtual vector< Traversal > | find_traversals (const handle_t &snarl_start, const handle_t &snarl_end) |
Private Attributes | |
const HandleGraph & | graph |
This traversal finder finds one or more traversals through leaf sites with no children. It uses a depth-first search. It doesn't work on non-leaf sites, and is not guaranteed to find all traversals. Only works on acyclic sites that are start-end-reachable.
vg::TrivialTraversalFinder::TrivialTraversalFinder | ( | const HandleGraph & | graph | ) |
|
virtualdefault |
|
virtual |
Find at least one traversal of the site by depth first search, if any exist. Only works on sites with no children.
Implements vg::TraversalFinder.
|
private |