-
Notifications
You must be signed in to change notification settings - Fork 19
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
Support PyG #93
Support PyG #93
Conversation
pygmtools/utils.py
Outdated
""" | ||
from torch_geometric.data import Data | ||
assert type(G1) == Data, f"G1 must be torch_geometric.data.Data" | ||
assert type(G2) == Data, f"G2 must be torch_geometric.data.Data" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please replace assert with ValueError
tests/test_classic_solvers.py
Outdated
# The testing function for networkx | ||
def _test_pyg(graph_num_nodes, backends): | ||
""" | ||
Test the RRWM algorithm on pairs of isomorphic graphs using NetworkX |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NetworkX -> PyG
pygmtools/utils.py
Outdated
return K | ||
|
||
|
||
def to_pyg(adj_matrix, backend=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be "from_pyg" and "to_networkx", "to_graphml"?
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #93 +/- ##
==========================================
- Coverage 92.86% 92.81% -0.05%
==========================================
Files 20 20
Lines 7621 7667 +46
==========================================
+ Hits 7077 7116 +39
- Misses 544 551 +7 ☔ View full report in Codecov by Sentry. |
No description provided.