vgteam / libhandlegraph

Library for the Handle Graph abstraction
MIT License
21 stars 5 forks source link

positions of nodes in a sorted array #27

Closed ekg closed 5 years ago

ekg commented 5 years ago

Should we expose a way to get the position of a node start in a (possibly virtual) vector of concatenated node sequences?

Maybe we should not use this model anymore, but it's been a significant part of some uses of the xg index in the past.

ekg commented 5 years ago

I'm pushing up a small change that allows this feature to be added to any handle graph. It's pretty minor so hopefully not a problem. At this point it will only work on xg.