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

Raw vs Wrapped objects #36

Open
jim22k opened this issue Nov 18, 2022 · 0 comments
Open

Raw vs Wrapped objects #36

jim22k opened this issue Nov 18, 2022 · 0 comments

Comments

@jim22k
Copy link
Member

jim22k commented Nov 18, 2022

Calling an algorithm should accept two types of inputs: a raw Matrix or a wrapped Graph.

  • When given a Matrix, the return type should be raw (i.e. a Matrix or Vector).
  • When given a Graph, the return type should be wrapped (i.e. a Graph or NodeMap).

This will make the interface more uniform when interacting with nxapi as Graphs will always be passed in, so a wrapper instance will be returned. But when using graphblas-algorithms without nxapi, the need for wrapping can be controlled by the user in how they call algorithms.

@jim22k jim22k changed the title Raw vs Wrapper objects Raw vs Wrapped objects Nov 18, 2022
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

No branches or pull requests

1 participant