Skip to content

[SYCL][Graph] Add error checking to make_edge #264

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

Merged
merged 6 commits into from
Jul 19, 2023

Conversation

Bensuo
Copy link
Collaborator

@Bensuo Bensuo commented Jul 13, 2023

  • make_edge now checks for cycles
  • no_cycle_check property can now be passed to skip them
  • Various other error checks in make_edge
  • Generic depth first search mechanism added to graph_impl
  • New e2e tests for cycle checks
  • Unit tests for other basic errors

Closes #94

@Bensuo Bensuo added the Graph Implementation Related to DPC++ implementation and testing label Jul 13, 2023
Copy link
Collaborator

@mfrancepillois mfrancepillois left a comment

Choose a reason for hiding this comment

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

It might be worth adding a Unitest checking the structure of the graph (added edges), especially if a cycle is created by make_edge.

@Bensuo
Copy link
Collaborator Author

Bensuo commented Jul 17, 2023

It might be worth adding a Unitest checking the structure of the graph (added edges), especially if a cycle is created by make_edge.

I've updated the unit tests to check the graph structure before and after adding a cycle which throws and is caught 👍

Bensuo added 5 commits July 18, 2023 12:42
- make_edge now checks for cycles
- no_cycle_check property can now be passed to skip them
- Various other error checks in make_edge
- Generic depth first search mechanism added to graph_impl
- New e2e tests for cycle checks
- Unit tests for other basic errors
- Improve comments
- Move visitNodeDepthFirst() to anonymouse namespace
- Move cycle error test to Explicit folder
- Adds testing for the graph structure after a cycle error is caught to ensure it is unchanged.
@Bensuo Bensuo force-pushed the ben/edge-error-checks branch from 8fac526 to e0dc49c Compare July 18, 2023 11:43
@Bensuo Bensuo merged commit 902d4b8 into sycl-graph-develop Jul 19, 2023
Bensuo added a commit that referenced this pull request Jul 31, 2023
- make_edge now checks for cycles
- no_cycle_check property can now be passed to skip them
- Various other error checks in make_edge
- Generic depth first search mechanism added to graph_impl
- New e2e tests for cycle checks
- Unit tests for other basic errors
- Prevent adding duplicate edges
- Adds testing for the graph structure after a cycle error is caught to ensure it is unchanged.
- Skip cycle checks when dst has no successors
@Bensuo Bensuo deleted the ben/edge-error-checks branch August 7, 2023 16:25
EwanC pushed a commit that referenced this pull request Aug 10, 2023
- make_edge now checks for cycles
- no_cycle_check property can now be passed to skip them
- Various other error checks in make_edge
- Generic depth first search mechanism added to graph_impl
- New e2e tests for cycle checks
- Unit tests for other basic errors
- Prevent adding duplicate edges
- Adds testing for the graph structure after a cycle error is caught to ensure it is unchanged.
- Skip cycle checks when dst has no successors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graph Implementation Related to DPC++ implementation and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement error checking from make_edge()
5 participants