This repository contains the complete set of algorithms and computational data from the article "Graph-based Descriptors for Condensed Matter", which is published in Physical Review E (PRE): https://journals.aps.org/pre/abstract/10.1103/PhysRevE.111.064302. It specifically focuses on the deep learning implementations of the four key experiments presented in the paper.
We replaced the traditional machine learning methods mentioned in the paper with a deep learning approach, specifically using GraphSAGE. The graph structure is implemented using the modified Voronoi method as described in the paper, with the parameter set to A=0.55, which was proven to be optimal in traditional machine learning methods. Note that message passing for each sample is only performed within its corresponding graph structure, while all GNNs share a common weight matrix.
For detailed settings, please refer to "GNN_settings.pdf".
The main repository of this article is https://github.com/anwanguow/GP_structural.
All trajectories are stored in the "data/Traj" directory, with 20 trajectories and their corresponding groups organized into subdirectories. Each subdirectory contains LAMMPS scripts for molecular dynamics simulations and the resulting DCD files.
-
Generation of graph structure: "data/graph_gen.py".
-
Generation of original input features: "data/X_1.py" and "data/X_2.py".
-
Dataset for Exp_A: "data/data_task_1.py".
-
Dataset for Exp_B: "data/data_task_2.py".
-
Dataset for Exp_C: "data/data_task_3.py".
-
Dataset for Exp_D: "data/data_task_4.py".
- Exp_A: "Task_1_train.py".
- Exp_B: Exp_B use the same optimal model as Exp_A for testing.
- Exp_C: "Task_3_train.py".
- Exp_D: "Task_4_train.py".
- Exp_A: "Task_1_test.py".
- Exp_B: "Task_2_test.py".
- Exp_C: "Task_3_test.py".
- Exp_D: "Task_4_test.py".
- Exp_A: "results/task_1.txt".
- Exp_B: "results/task_2.txt".
- Exp_C: "results/task_3.txt".
- Exp_D: "results/task_4.txt".
@article{PhysRevE.111.064302,
title = {Graph-based descriptors for condensed matter},
author = {Wang, An and Sosso, Gabriele C.},
journal = {Phys. Rev. E},
volume = {111},
issue = {6},
pages = {064302},
numpages = {43},
year = {2025},
month = {Jun},
publisher = {American Physical Society},
doi = {10.1103/PhysRevE.111.064302},
url = {https://link.aps.org/doi/10.1103/PhysRevE.111.064302}
}
An Wang: [email protected]