-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I've been using paths quite a lot in bdsg and found that a couple methods would simplify things:
pop_path_front/back
rename_path
Based on the existing methods prepend_step and append_step, pop should be equivalently complex for each implementation. As it is now I am using this to "pop" elements:
auto begin = graph.path_begin(p);
auto next = graph.get_next_step(begin);
graph.rewrite_segment(begin, next, vector<handle_t>());
And for the path renaming, I copy the entire path and delete the old one, so it would be cool if there was a copy-free method.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request