Skip to contents

Computes and returns a comprehensive summary of an MST completion graph, including graph statistics, edge weight distributions, and PCA information if applicable.

Usage

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

Arguments

object

An object of class mst_completion_graph.

...

Additional arguments (currently ignored).

Value

An object of class summary.mst_completion_graph containing:

n_vertices

Number of vertices in the graph

n_mst_edges

Number of edges in the minimal spanning tree

n_cmst_edges

Number of edges in the completed graph

q_thld

Quantile threshold used for completion

edge_weight_summary

Five-number summary of MST edge weights

completion_threshold

The actual distance threshold used

pca_applied

Logical indicating if PCA was applied

pca_info

PCA details (if applicable)

See also

print.summary.mst_completion_graph for printing summaries, create.cmst.graph for creating graphs

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