|
vg
tools for working with variation graphs
|
#include <cluster.hpp>
Public Member Functions | |
| virtual | ~OrientedDistanceMeasurer ()=default |
| virtual int64_t | oriented_distance (const pos_t &pos_1, const pos_t &pos_2)=0 |
| virtual vector< vector< size_t > > | get_buckets (const function< pos_t(size_t)> &get_position, size_t num_items)=0 |
| virtual vector< pair< size_t, size_t > > | exclude_merges (vector< vector< size_t > > ¤t_groups, const function< pos_t(size_t)> &get_position)=0 |
|
virtualdefault |
|
pure virtual |
Return a vector of pairs of groups (referred to by indexes in the current_groups vector) that cannot have finite distances between them (typically because they are on separate components).
Implemented in vg::PathOrientedDistanceMeasurer, and vg::SnarlOrientedDistanceMeasurer.
|
pure virtual |
Return a vector of groups that we believe will have finite distances under this metric, can be empty.
Implemented in vg::PathOrientedDistanceMeasurer, and vg::SnarlOrientedDistanceMeasurer.
|
pure virtual |
Returns a signed distance, where positive indicates that pos_2 is to the right of pos_1, and negative indicates to the left. If the distance is infinite or can't be determined, returns numeric_limits<int64_t>::max().
Implemented in vg::PathOrientedDistanceMeasurer, and vg::SnarlOrientedDistanceMeasurer.
1.17.0