microsoft / Graphormer

Graphormer is a general-purpose deep learning backbone for molecular modeling.
MIT License
2.08k stars 334 forks source link

[Feature request] Supports Sparse Graph Representation #82

Open zhengsx opened 2 years ago

zhengsx commented 2 years ago

Summary

In torch_geometric, the adjacent matrix is represented as sparse edge index (graph connectivity in COO format with shape). There are two potential advantages of sparse edge index: 1. less memory utilization; 2. graphs in one minibatch are represented by one edge_index tensor. Considering to be compatible.