Skip to contents

Summarize Iterated Intersection k-NN Graphs

Usage

# S3 method for class 'iterated_iknn_graphs'
summary(object, ...)

Arguments

object

An object from create.iterated.iknn.graphs().

...

Unused.

Value

A data frame with one row per iteration and neighborhood size, reporting vertex, edge and connected-component counts and mean, minimum and maximum degree. This is the object's stored summary component.

Examples

set.seed(1)
X <- matrix(rnorm(30), ncol = 2)
out <- create.iterated.iknn.graphs(X, k.values = seq.int(2, 3), n.iterations = 1,
    verbose = FALSE)
summary(out)
#>   iteration graph k n_vertices n_edges n_ccomp mean_degree min_degree
#> 1         0    G0 2         15      37       1    4.933333          3
#> 2         0    G0 3         15      58       1    7.733333          5
#> 3         1    G1 2         15      37       1    4.933333          3
#> 4         1    G1 3         15      58       1    7.733333          5
#>   max_degree
#> 1          8
#> 2         10
#> 3          8
#> 4         10