print.mknn_graphs: Print Method for mknn_graphs Objects

View source: R/mknn_graphs.R

print.mknn_graphsR Documentation

Print Method for mknn_graphs Objects

Description

Prints a concise summary of a collection of mutual k-nearest neighbor graphs.

Usage

## S3 method for class 'mknn_graphs'
print(x, ...)

Arguments

x

An object of class "mknn_graphs".

...

Additional arguments (currently unused).

Value

Invisibly returns the input object.

Examples

graphs <- list(
  k_statistics = data.frame(
    k = 2:4,
    n_edges_pruned = c(2L, 3L, 3L)
  )
)
attr(graphs, "kmin") <- 2L
attr(graphs, "kmax") <- 4L
attr(graphs, "n_vertices") <- 3L
class(graphs) <- "mknn_graphs"

print(graphs)

dgraphs documentation built on Aug. 21, 2026, 1:08 a.m.