View source: R/mst_completion_graphs.R
| summary.mst_completion_graph | R Documentation |
Computes and returns a comprehensive summary of an MST completion graph, including graph statistics, edge weight distributions, and PCA information if applicable.
## S3 method for class 'mst_completion_graph'
summary(object, ...)
object |
An object of class |
... |
Additional arguments (currently ignored). |
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)
print.summary.mst_completion_graph for printing summaries,
create.cmst.graph for creating graphs
graph <- list(
mst_adj_list = list(c(2L), c(1L, 3L), c(2L)),
mst_weight_list = list(1.1, c(1.1, 0.9), 0.9),
cmst_adj_list = list(c(2L, 3L), c(1L, 3L), c(1L, 2L)),
cmst_weight_list = list(c(1.1, 1.4), c(1.1, 0.9), c(1.4, 0.9)),
mst_edge_weights = c(1.1, 0.9),
cmst_distance_threshold = 1.08
)
attr(graph, "q_thld") <- 0.8
attr(graph, "cmst_distance_threshold") <- graph$cmst_distance_threshold
class(graph) <- c("mst_completion_graph", "list")
summary(graph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.