biomol.core.EdgeFeature.crop#

EdgeFeature.crop(indices)[source]#

Crop the feature to only include the specified indices.

Keep only pairs (i, j) whose both endpoints are in indices.

Parameters:

indices (NDArray[np.integer]) – 1D array of node indices to keep. Only integer arrays is allowed.

Return type:

Self