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

Basic graph generation using hypothesis, compare outputs with NX #18

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MridulS
Copy link

@MridulS MridulS commented Jul 9, 2022

To extend tests #10
Using hypothesis to generate a combinations of graphs to compare the outputs of nx implementation and graphblas ones. I'm not a 100% sure if this is the best way of doing this (this is the first time I'm writing hypothesis tests) and the coverage would be pretty poor as there are a lot of assumptions. Currently the graph generator gives a sample of graphs with the toggles:

  • directed: bool generate a directed graph
  • self_loops: bool to control if self edges are allowed
  • sym_digraph: bool to control the symmetric digraphs.
  • edges: generates a 3-tuple of edge data, all our integers
  • edge_data: bool to control if the edge should be weighted or not.

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.

1 participant