vg
tools for working with variation graphs
Public Member Functions | Public Attributes | List of all members
bdsg::HashGraph::node_t Struct Reference

Public Member Functions

 node_t ()
 
 node_t (const string &sequence)
 
void serialize (ostream &out) const
 
void deserialize (istream &in)
 Read the node (in the format written by serialize()) from an in stream. More...
 

Public Attributes

string sequence
 
vector< handle_tleft_edges
 Adjacency list from the left side of the node. More...
 
vector< handle_tright_edges
 Adjacency list from the right side of the node. More...
 
vector< path_mapping_t * > occurrences
 The occurrences of this node on paths;. More...
 

Constructor & Destructor Documentation

◆ node_t() [1/2]

bdsg::HashGraph::node_t::node_t ( )
inline

◆ node_t() [2/2]

bdsg::HashGraph::node_t::node_t ( const string &  sequence)
inline

Member Function Documentation

◆ deserialize()

void bdsg::HashGraph::node_t::deserialize ( istream &  in)

Read the node (in the format written by serialize()) from an in stream.

◆ serialize()

uint64_t bdsg::node_t::serialize ( std::ostream &  out) const

Write the node to an out stream, applying the given ID offset to nodes referenced by edges.

Member Data Documentation

◆ left_edges

vector<handle_t> bdsg::HashGraph::node_t::left_edges

Adjacency list from the left side of the node.

◆ occurrences

vector<path_mapping_t*> bdsg::HashGraph::node_t::occurrences

The occurrences of this node on paths;.

◆ right_edges

vector<handle_t> bdsg::HashGraph::node_t::right_edges

Adjacency list from the right side of the node.

◆ sequence

const std::string bdsg::node_t::sequence

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