print.mknn_graph: Print Method for mknn_graph Objects

View source: R/mknn_graphs.R

print.mknn_graphR Documentation

Print Method for mknn_graph Objects

Description

Prints a concise summary of a mutual k-nearest neighbor graph object.

Usage

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

Arguments

x

An object of class "mknn_graph".

...

Additional arguments (currently unused).

Value

Invisibly returns the input object.

Examples

graph <- list(
  n_vertices = 3L,
  n_edges = 2L,
  k = 2L,
  adj_list = list(c(2L), c(1L, 3L), c(2L))
)
class(graph) <- c("mknn_graph", "list")

print(graph)

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