Utility for extracting topological, structural, and spectral descriptors from PeriodicGraphData.
More...
#include <GraphDescriptors.hpp>
Utility for extracting topological, structural, and spectral descriptors from PeriodicGraphData.
◆ computeCNADescriptor()
| std::vector< int > correlation::mlip::GraphDescriptors::computeCNADescriptor |
( |
const PeriodicGraphData & | graph | ) |
|
|
staticnodiscard |
Computes per-atom Common Neighbor Analysis (CNA) classification labels.
- Parameters
-
| [in] | graph | The periodic neighbor graph tensor buffers. |
- Returns
- Array of size [N] with CNALabel integer values (0=Other, 1=FCC, 2=HCP, 3=BCC, 4=ICO).
◆ computeCoordinationEmbedding()
| std::vector< real_t > correlation::mlip::GraphDescriptors::computeCoordinationEmbedding |
( |
const PeriodicGraphData & | graph | ) |
|
|
staticnodiscard |
Computes per-atom coordination number embedding.
- Parameters
-
| [in] | graph | The periodic neighbor graph tensor buffers. |
- Returns
- Array of size [N] containing the degree of each node.
◆ computeGraphSpectrum()
| std::vector< real_t > correlation::mlip::GraphDescriptors::computeGraphSpectrum |
( |
const PeriodicGraphData & | graph, |
|
|
size_t | k_eigenvalues ) |
|
staticnodiscard |
Computes top-k eigenvalues of the graph adjacency matrix.
- Parameters
-
| [in] | graph | The periodic neighbor graph tensor buffers. |
| [in] | k_eigenvalues | Number of leading eigenvalues to compute. |
- Returns
- Array of top-k eigenvalues sorted in descending order.
◆ computeRingStatisticsDescriptor()
| std::vector< real_t > correlation::mlip::GraphDescriptors::computeRingStatisticsDescriptor |
( |
const PeriodicGraphData & | graph, |
|
|
size_t | max_size = 6 ) |
|
staticnodiscard |
Computes per-atom ring statistics embedding using cycle basis detection.
For each atom i in [0, N-1] and ring size s in [1, max_size], stores the count of chordless rings of size s that contain atom i.
- Parameters
-
| [in] | graph | The periodic neighbor graph tensor buffers. |
| [in] | max_size | Maximum ring size to search for (default: 6). |
- Returns
- Flattened array of size [N * max_size] with per-atom ring counts.
◆ populateDescriptors()
| void correlation::mlip::GraphDescriptors::populateDescriptors |
( |
PeriodicGraphData & | graph, |
|
|
size_t | max_ring_size = 6 ) |
|
static |
Populates all descriptor fields in PeriodicGraphData in-place.
- Parameters
-
| [in,out] | graph | The periodic neighbor graph tensor buffers to enrich. |
| [in] | max_ring_size | Maximum ring size for ring embeddings (default: 6). |
The documentation for this class was generated from the following files: