Skip to content

GA-163 | test_graph #33

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 34 commits into from
Aug 23, 2024
Merged

GA-163 | test_graph #33

merged 34 commits into from
Aug 23, 2024

Conversation

aMahanna
Copy link
Member

@aMahanna aMahanna commented Aug 16, 2024

Implementing https://github.com/networkx/networkx/blob/main/networkx/classes/tests/test_graph.py assertions for NetworkX-ArangoDB

Related to arangoml/phenolrs#32

Note that the following tests in test_graph.py are intentionally skipped for now:

  • test_copy (reason: graph copying is not supported yet)
  • test_class_copy (reason: graph copying is not supported yet)
  • test_to_undirected (reason: graph copying is not supported yet)
  • test_to_directed (reason: graph copying is not supported yet)
  • test_subgraph (reason: subgraphing is not supported yet)
  • test_pickle (reason: TBD)

@aMahanna aMahanna changed the title WIP: GA-163 | NetworkX Tests WIP: GA-163 | NetworkX Classes Tests Aug 16, 2024
@aMahanna aMahanna changed the title WIP: GA-163 | NetworkX Classes Tests WIP: GA-163 | test_graph Test File Aug 19, 2024
@aMahanna aMahanna changed the title WIP: GA-163 | test_graph Test File GA-163 | test_graph Test File Aug 20, 2024
Comment on lines +1114 to +1115
# TODO: Revisit when DB-based subgraphing is supported
# class TestEdgeSubgraph:
Copy link
Member Author

Choose a reason for hiding this comment

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

just highlighting: skipping this entire suite right now because Subgraphing isn't really "officially" supported...

@aMahanna aMahanna mentioned this pull request Aug 21, 2024
@aMahanna aMahanna changed the title GA-163 | test_graph Test File GA-163 | test_graph Aug 21, 2024
@aMahanna aMahanna requested a review from hkernbach August 23, 2024 15:10
Comment on lines +641 to +644
if not (self.FETCHED_ALL_DATA or self.FETCHED_ALL_IDS):
self._fetch_all()

yield from self.data.keys()
Copy link
Member

Choose a reason for hiding this comment

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

This is good. Just as a global comment: At some point we should think about in general all tasks that could require some or long time to finish (e.g. loading a lot of edges, or loading huge edges, etc.) Some indicator for that would be great somewhen or visibility.

Copy link
Member Author

Choose a reason for hiding this comment

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

ya good point. Something like a temporary spinner or a progress bar would be useful to have

Copy link
Member Author

Choose a reason for hiding this comment

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

I've worked with these progress libraries before, could be something we can introduce:

@hkernbach hkernbach merged commit 93d1d24 into main Aug 23, 2024
4 checks passed
@aMahanna aMahanna deleted the GA-163 branch August 23, 2024 16:15
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.

2 participants