Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convenient Tinygraph construction functions #5

Open
daniel-j-h opened this issue Jan 13, 2023 · 0 comments
Open

Add convenient Tinygraph construction functions #5

daniel-j-h opened this issue Jan 13, 2023 · 0 comments

Comments

@daniel-j-h
Copy link
Member

At the moment the Python impl. Tinygraph can only be constructed from the two arrays: an offsets array and a targets array.

We should - for convenience - provide construction e.g. from an iterable of (from, to) tuples or construction from two parallel iterables of [from0, from1, ..] and [to0, to1, ..] shape.

Note: we might want to look into networkx and scipy's sparse matrices and how to convert from/to them. Maybe split off into new ticket.

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

No branches or pull requests

1 participant