Skip to contents

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 <- create.mknn.graphs(matrix(c(0, 1, 3, 6, 9), ncol = 1),
                              k.values = 1:3, verbose = FALSE)
print(graphs)
#> Collection of Mutual k-NN Graphs
#> --------------------------------
#> Number of vertices: 5
#> k range: 1 to 3 (3 graphs)
#> 
#> Edge counts by k:
#>  k n_edges_pruned
#>  1              1
#>  2              3
#>  3              4
#> 
#> Use summary() for detailed statistics.