vg
tools for working with variation graphs
Public Member Functions | Public Attributes | List of all members
vg::DozeuInterface::OrderedGraph Struct Reference

#include <dozeu_interface.hpp>

Public Member Functions

 OrderedGraph (const HandleGraph &graph, const vector< handle_t > &order)
 
void for_each_neighbor (const size_t i, bool go_left, const function< void(size_t)> &lambda) const
 
size_t size () const
 

Public Attributes

const HandleGraphgraph
 
const vector< handle_t > & order
 
unordered_map< handle_t, size_t > index_of
 

Detailed Description

Represents a HandleGraph with a defined (topological) order calculated for it.

Constructor & Destructor Documentation

◆ OrderedGraph()

DozeuInterface::OrderedGraph::OrderedGraph ( const HandleGraph graph,
const vector< handle_t > &  order 
)

Member Function Documentation

◆ for_each_neighbor()

void DozeuInterface::OrderedGraph::for_each_neighbor ( const size_t  i,
bool  go_left,
const function< void(size_t)> &  lambda 
) const

◆ size()

size_t DozeuInterface::OrderedGraph::size ( ) const

Member Data Documentation

◆ graph

const HandleGraph& vg::DozeuInterface::OrderedGraph::graph

◆ index_of

unordered_map<handle_t, size_t> vg::DozeuInterface::OrderedGraph::index_of

◆ order

const vector<handle_t>& vg::DozeuInterface::OrderedGraph::order

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