vg
tools for working with variation graphs
Namespaces | Functions
sorted_id_ranges.cpp File Reference
#include "sorted_id_ranges.hpp"

Namespaces

 vg
 
 vg::algorithms
 

Functions

std::vector< std::pair< nid_t, nid_t > > vg::algorithms::sorted_id_ranges (const HandleGraph *graph)
 Get a sorted list of inclusive ranges of IDs used in the given HandleGraph. More...
 
bool vg::algorithms::is_in_sorted_id_ranges (const nid_t &value, const std::vector< std::pair< nid_t, nid_t >> &ranges)
 Get whether an ID is in a sorted list of inclusive ID ranges. More...