Summary Method for MST Completion Graph Objects
Source:R/mst_completion_graphs.R
summary.mst_completion_graph.RdComputes 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, ...)Value
An object of class summary.mst_completion_graph containing:
n_verticesNumber of vertices in the graph
n_mst_edgesNumber of edges in the minimal spanning tree
n_cmst_edgesNumber of edges in the completed graph
q_thldQuantile threshold used for completion
edge_weight_summaryFive-number summary of MST edge weights
completion_thresholdThe actual distance threshold used
pca_appliedLogical indicating if PCA was applied
pca_infoPCA 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