vg
tools for working with variation graphs
Public Member Functions | Private Member Functions | Private Attributes | List of all members
vg::PathComponentIndex Class Reference

#include <path_component_index.hpp>

Public Member Functions

 PathComponentIndex (const PathHandleGraph *graph)
 Constructor. More...
 
bool paths_on_same_component (const path_handle_t &path_1, const path_handle_t &path_2) const
 Teturns true if the paths are on the same connected component of the graph. More...
 

Private Member Functions

 PathComponentIndex ()
 

Private Attributes

vector< unordered_set< path_handle_t > > component_path_sets
 Memoized sets of the paths that co-occur on a connected component. More...
 
unordered_map< path_handle_t, size_t > component_path_set_of_path
 

Constructor & Destructor Documentation

◆ PathComponentIndex() [1/2]

vg::PathComponentIndex::PathComponentIndex ( const PathHandleGraph graph)

◆ PathComponentIndex() [2/2]

vg::PathComponentIndex::PathComponentIndex ( )
private

We make the default constructor private so that it can be used in move's, etc. but isn't exposed

Member Function Documentation

◆ paths_on_same_component()

bool vg::PathComponentIndex::paths_on_same_component ( const path_handle_t path_1,
const path_handle_t path_2 
) const

Teturns true if the paths are on the same connected component of the graph.

Member Data Documentation

◆ component_path_set_of_path

unordered_map<path_handle_t, size_t> vg::PathComponentIndex::component_path_set_of_path
private

An index from a path to the set of paths that occur on the same connected component as it

◆ component_path_sets

vector<unordered_set<path_handle_t> > vg::PathComponentIndex::component_path_sets
private

Memoized sets of the paths that co-occur on a connected component.


The documentation for this class was generated from the following files: