Skip to content

add vectorizable overlay - #20

Merged
glennhickey merged 3 commits into
masterfrom
vectorizable-overlay
Sep 9, 2019
Merged

glennhickey merged 3 commits into
masterfrom
vectorizable-overlay

Conversation

@glennhickey

Copy link
Copy Markdown
Contributor

This is a quick and dirty overlay to make any graph vectorizable (ie packable).

While testing this, I discovered that xg's implementation of the interface is inconsistent in that node_vector_offset() returns a 0-based offset, but node_at_vector_offest() expects a 1-based offset. This should probably get fixed up, but will wait for xg to stabilize first.

@glennhickey
glennhickey merged commit a4f8e6b into master Sep 9, 2019
@ekg

ekg commented Sep 9, 2019

Copy link
Copy Markdown
Member

I also noticed the issue about 1-based vs 0-based indexes for these two functions.

I think 0-based is nicer. We should stabilize on that unless you object.

I'd like to merge the nearly-there xg integration before fixing this though.

@jeizenga

jeizenga commented Sep 9, 2019

Copy link
Copy Markdown
Contributor

+1 to 0-based indexing

@glennhickey

Copy link
Copy Markdown
Contributor Author

Sure, 0 works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants