feat(integration): add DGL integration#13
Open
jeremy-wayland wants to merge 7 commits into
Open
Conversation
…ndencies and remove unused packages
…tegration instructions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds comprehensive support for DGL (Deep Graph Library) integration to the RINGS evaluation framework, enabling users to apply RINGS perturbations to DGL graphs in the same way as PyG (PyTorch Geometric) graphs. The changes introduce DGL-compatible wrappers for all core perturbations, update documentation and installation instructions for optional integrations, and add thorough tests to ensure correct behavior and compatibility.
DGL Integration:
rings/integrations/dgl.pythat provides DGL wrappers (DGLOriginal,DGLEmptyFeatures,DGLRandomFeatures,DGLEmptyGraph,DGLCompleteGraph,DGLRandomGraph) for all core RINGS perturbations, enabling round-trip conversion between DGL and PyG graph formats.rings/integrations/__init__.pyto expose these DGL wrappers and ensure lazy loading of DGL dependencies.SeparabilityStudy.applyto support DGLDGLGraphobjects in addition to PyGData/Dataset.Documentation and Installation:
pyproject.tomlto add DGL and Lightning as optional dependencies, and defined integration dependency groups for flexible installation. [1] [2]README.mdand Sphinx docs to cover optional integrations and DGL usage, including example code and dependency group usage. [1] [2] [3] [4] [5]Testing:
tests/test_dgl_integration.pywith comprehensive unit tests for all DGL perturbation wrappers, round-trip conversions, feature handling, and integration withSeparabilityStudy.tests/test_lightning_framework_integration.pyto include DGL-based graphs and ensure compatibility with Lightning callbacks and studies.