mllf.cb.graph_utils
Helpers to convert existing Graph objects to PyTorch Geometric Data.
This module is intentionally defensive: it will try to import the project’s Graph class and fall back to handling networkx-like graph objects.
Functions
|
Build list of directed pairs for all substituents within each site. |
|
Convert a Graph-like object g into a PyG Data object and metadata. |
|
Compute DeepSet embedding for a single node/substituent. |
|
Compute DeepSet embeddings for all nodes in a graph. |