void rectangle::simple_extend(thread_t& extension, xg::XG& graph, int delta_start = 0, int delta_end = 0) { if(extension.size() > 0) { xg::XG::ThreadMapping next_node = extension.back(); int64_t next_side = graph.id_to_rank(next_node.node_id) * 2 + next_node.is_reverse; state.current_side = next_side; } state.range_start -= delta_start; state.range_end -= delta_end; }
void rectangle::simple_extend(xg::XG::ThreadMapping next_node, xg::XG& graph, int delta_start = 0, int delta_end = 0) { int64_t next_side = graph.id_to_rank(next_node.node_id) * 2 + next_node.is_reverse; state.current_side = next_side; state.range_start -= delta_start; state.range_end -= delta_end; }