This repository contains the code and data from the article "Graph-based Descriptors for Condensed Matter".
The related article has been published in Physical Review E (PRE), where it is accessible at https://journals.aps.org/pre/abstract/10.1103/PhysRevE.111.064302.
The raw data involved in the paper, namely the MD simulation trajectories and the LAMMPS scripts used to generate them, can be found in the “data/Traj” directory.
The code for reproducing each figure in the article can be found in the "Figures" directory.
The code for key algorithms in the article can be found in the "Algorithm" directory.
- Modified Voronoi method: voronoi.py
-
$p_{hop}$ : p_hop.py - Type A and B descriptors: type_a_b.py
- Type C descriptor: Use Networkx directly
- Type D descriptor: type_d.py
In the article, the procedures for generating distance matrices, constructing networks (using the modified Voronoi method) from point cloud data (frames in trajectories), calculating various descriptors, assigning sample labels, and integrating feature matrices all involve batch computations and storage by traversing multiple sets of parameters. This part of the script is stored in the "Script" directory. Before running, please configure the relevant directories and paths according to your local environment, and set the corresponding parameters in scripts as needed (see comments for variables from the code).
- Distance matrix: get_distance_table.py
- Graph Generation (modified Voronoi method): generate_graph.py
- Sample Labelling (labelled as soft or hard according to
$p_{hop}$ ): y_label.py - The value of
$p_{hop}$ : p_hop_value.py - Type A descriptor: Type_A.py
- Type B descriptor: Type_B.py
- Type C descriptor: Type_C.py
- Type D descriptor: Type_D.py
- Feature matrix and dataset for ML: dataset.py
This part is related to the results of traditional machine learning part.
The saved sessions of MATLAB Classification Learner: https://drive.google.com/file/d/1-0hi_-P2unh_muGqAeghlDOeup4i5-NR/view?usp=sharing
See https://github.com/anwanguow/graph_descriptor_deep_learning.
See directory "PCA".
@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: amturing@outlook.com