molpopgen / demes-rs

rust tools for the demes ecosystem
MIT License
0 stars 1 forks source link

Model "slicing" #374

Open molpopgen opened 6 months ago

molpopgen commented 6 months ago

There are lots of reasons to want to "trim" a model down to a particular slice of time.

Proposal:

The names are TBD. Two calls lets you "slice to the middle" of an input model.

These functions should be consuming. Ideally, we'd take a current Graph and convert it back to an unresolved graph, edit, then resolve.