Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::mlip::GraphDescriptors Class Reference

Utility for extracting topological, structural, and spectral descriptors from PeriodicGraphData. More...

#include <GraphDescriptors.hpp>

Static Public Member Functions

static std::vector< real_t > computeRingStatisticsDescriptor (const PeriodicGraphData &graph, size_t max_size=6)
 Computes per-atom ring statistics embedding using cycle basis detection.
static std::vector< int > computeCNADescriptor (const PeriodicGraphData &graph)
 Computes per-atom Common Neighbor Analysis (CNA) classification labels.
static std::vector< real_t > computeCoordinationEmbedding (const PeriodicGraphData &graph)
 Computes per-atom coordination number embedding.
static std::vector< real_t > computeGraphSpectrum (const PeriodicGraphData &graph, size_t k_eigenvalues)
 Computes top-k eigenvalues of the graph adjacency matrix.
static void populateDescriptors (PeriodicGraphData &graph, size_t max_ring_size=6)
 Populates all descriptor fields in PeriodicGraphData in-place.

Detailed Description

Utility for extracting topological, structural, and spectral descriptors from PeriodicGraphData.

Member Function Documentation

◆ computeCNADescriptor()

std::vector< int > correlation::mlip::GraphDescriptors::computeCNADescriptor ( const PeriodicGraphData & graph)
staticnodiscard

Computes per-atom Common Neighbor Analysis (CNA) classification labels.

Parameters
[in]graphThe periodic neighbor graph tensor buffers.
Returns
Array of size [N] with CNALabel integer values (0=Other, 1=FCC, 2=HCP, 3=BCC, 4=ICO).
Here is the caller graph for this function:

◆ computeCoordinationEmbedding()

std::vector< real_t > correlation::mlip::GraphDescriptors::computeCoordinationEmbedding ( const PeriodicGraphData & graph)
staticnodiscard

Computes per-atom coordination number embedding.

Parameters
[in]graphThe periodic neighbor graph tensor buffers.
Returns
Array of size [N] containing the degree of each node.
Here is the caller graph for this function:

◆ 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]graphThe periodic neighbor graph tensor buffers.
[in]k_eigenvaluesNumber 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]graphThe periodic neighbor graph tensor buffers.
[in]max_sizeMaximum ring size to search for (default: 6).
Returns
Flattened array of size [N * max_size] with per-atom ring counts.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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]graphThe periodic neighbor graph tensor buffers to enrich.
[in]max_ring_sizeMaximum ring size for ring embeddings (default: 6).
Here is the call graph for this function:

The documentation for this class was generated from the following files: