void query(ll::Dawg *dawg, const std::string &query_term, std::size_t max_distance)
void collect_nodes(DawgNode *source, std::set< uint64_t > &node_ids, std::set< uint64_t > &final_node_ids)
Collects the DawgNode IDs and final DawgNode IDs of all nodes reachable from the source.
void collect_edges(DawgNode *source, std::map< std::pair< uint64_t, char >, uint64_t > &edges)
Collects the transitions from each source to its destination, and the respective character labels.