Skip to contents

Formats and displays the summary information for an MST completion graph in a readable format.

Usage

# S3 method for class 'summary.mst_completion_graph'
print(x, digits = 3L, ...)

Arguments

x

An object of class summary.mst_completion_graph, as returned by summary.mst_completion_graph.

digits

Integer; number of significant digits for numeric output. Default is 3.

...

Additional arguments (currently ignored).

Value

Invisibly returns the input summary object.

Examples

X <- rbind(c(0, 0), c(1, 0), c(0, 1), c(2, 2))
graph <- create.cmst.graph(X, verbose = FALSE)
print(graph)
#> Minimal Spanning Tree Completion Graph
#> ======================================
#> Number of vertices: 4
#> Number of MST edges: 3
#> Quantile threshold: 0.900
#> Distance threshold: 1.989
#> Number of completed graph edges: 4
#> Edge increase factor: 1.33x
summary(graph)
#> Summary of MST Completion Graph
#> ===============================
#> 
#> Graph Structure:
#>   Vertices: 4
#>   MST edges: 3
#>   Completed graph edges: 4 (1.3x increase)
#> 
#> MST Edge Weight Distribution:
#>   Min:    1.000
#>   Q1:     1.000
#>   Median: 1.000
#>   Mean:   1.412
#>   Q3:     1.618
#>   Max:    2.236
#> 
#> Completion Parameters:
#>   Quantile threshold: 0.900
#>   Distance threshold: 1.989