Skip to content

WIP: expand backend_priority config to support graph generators - #7502

Closed
eriknw wants to merge 9 commits into
networkx:mainfrom
eriknw:backend_priority_generators
Closed

eriknw wants to merge 9 commits into
networkx:mainfrom
eriknw:backend_priority_generators

Conversation

@eriknw

@eriknw eriknw commented Jun 17, 2024

Copy link
Copy Markdown
Contributor

... and individual functions.

This gives much greater control over how and when to use backends. For example, I could see it being very handy to be able to do something like this:

nx.config.backend_priority.algos = ["cugraph", "graphblas"]
nx.config.backend_priority.generators = ["pandas"]  # or e.g. "arangodb"
nx.config.backend_priority.square_clustering = ["graphblas"]

@rlratzel this is largely as we brainstormed last week.

I've really enjoyed playing around with this using storage backend such as nx-pandas and a compute backend such as nx-graphblas!

@eriknw

eriknw commented Aug 19, 2024

Copy link
Copy Markdown
Contributor Author

Closing in favor of #7585, which includes changes in this PR and has pushed them out of WIP. This PR may be useful for looking at these changes in isolation, but please leave comments and reviews in #7585.

@eriknw eriknw closed this Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dispatching Related to dispatching and backend support type: Enhancements

Development

Successfully merging this pull request may close these issues.

1 participant