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

Adds FEMap To/from networkx #112

Merged
merged 3 commits into from
Nov 20, 2023
Merged

Adds FEMap To/from networkx #112

merged 3 commits into from
Nov 20, 2023

Conversation

richardjgowers
Copy link
Contributor

fixes #110

This PR hides the internal representation of a FEMap object (currently a nx MultiDiGraph) to allow future flexibility in choosing an optimal backend for this representation.

Instead the current implementation is exposed via a FEMap.to/from_networkx method, functions operating on an FEMap can use this to access the data indirectly.

Future representations/solvers working on those backends can be added via more to/from methods.

allows hashing, for usage in sets/dicts etc
instead representations are accessed via to/from methods on FEMap class

adds to/from networkx representation

adds FEMap eq and iter magic methods
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Merging #112 (0d05d45) into main (95cca4e) will increase coverage by 0.56%.
The diff coverage is 96.77%.

Additional details and impacted files

@richardjgowers richardjgowers merged commit c3662d9 into main Nov 20, 2023
8 checks passed
@richardjgowers richardjgowers deleted the to_from_networkx branch November 20, 2023 15:20
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.

FEMap add to/from networkx method
1 participant