Skip to content

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
@codecov
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
@richardjgowers richardjgowers deleted the to_from_networkx branch November 20, 2023 15:20
@IAlibay IAlibay mentioned this pull request Jun 16, 2025
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

2 participants