biomol.core.EdgeFeature#
- class EdgeFeature(value, src_indices, dst_indices)[source]#
Bases:
FeatureA feature associated with edges (pairs of nodes) in a structure.
- Parameters:
value (np.ndarray) – A numpy array where the first dimension corresponds to the edges.
src_indices (NDArray[np.integer]) – A 1D numpy array of source node indices for each edge.
dst_indices (NDArray[np.integer]) – A 1D numpy array of destination node indices for each edge.
Attributes
The underlying numpy array representing the feature data.
Source node indices of the edges.
Destination node indices of the edges.
Return the destination node indices of the edges.
Return the data type of the feature.
Return the number of dimensions of the feature.
Return the unique node indices involved in the edges.
Return the shape of the feature.
Return the total number of elements in the feature.
Return the source node indices of the edges.
Methods
Return a deep copy of the edge feature.
Crop the feature to only include the specified indices.
Return the maximum of the feature along the specified axis.
Return the mean of the feature along the specified axis.
Return the minimum of the feature along the specified axis.
Return the sum of the feature along the specified axis.