Skip to contents

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 <- create.mknn.graph(matrix(c(0, 1, 3, 6), ncol = 1), k = 2)
print(graph)
#> Mutual k-Nearest Neighbor Graph
#> -------------------------------
#> Number of vertices: 4
#> Number of edges: 3
#> k value: 2
#> Mean degree: 1.50
#> Degree range: [1, 2]