Skip to content

Conversation

@c-bebop
Copy link
Collaborator

@c-bebop c-bebop commented Dec 11, 2024

Problem Definition: one of the issues with reading in edges of a GDSB binary file is that it is up to the user how to read in an edge. This may lead to unintended behavior (or bugs) if the order or the read type is incorrect.

Solution: instead of leaving it up to the user on how to read in an edge from a binary stream, we now offer convenience functions to do so.

Please note that by passing the edge type by reference we will not have to construct an edge in place which may reduce computational overhead of the users application, and makes it easy to overload the functions with the respective type.

@c-bebop c-bebop self-assigned this Dec 11, 2024
@c-bebop
Copy link
Collaborator Author

c-bebop commented Dec 12, 2024

I am aware we need the writing counterpart to this PR. However, I would prefer to finish this PR first and then make an additional one for writing graph data to a binary GDSB file.

Copy link
Collaborator

@domischweisgut domischweisgut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is easy to see what the new code does. That's very nice! :)

@c-bebop
Copy link
Collaborator Author

c-bebop commented Dec 16, 2024

Thanks for the review!

@c-bebop c-bebop merged commit f064368 into main Dec 16, 2024
6 checks passed
@c-bebop c-bebop deleted the binary_graph_input_revision branch December 16, 2024 14:03
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