Skip to contents

Column count of a k-nearest neighbour list.

Usage

seams_neighbours_knn(sys, k = 4L, cutoff = 3.5, mutual = TRUE)

Arguments

sys

A dseams_system.

k

Neighbour count.

cutoff

Nominal cutoff in angstrom.

mutual

When true, keep the mutual graph.

Value

An integer, class dseams_nnz.

Examples

sys <- seams_system_new()
seams_system_read(sys, dseams_example("ice1h.lammpstrj"))
#> [1] 128
seams_neighbours_knn(sys)
#> [1] 512
#> attr(,"class")
#> [1] "dseams_nnz" "integer"