View source: R/mst_completion_graphs.R
| print.mst_completion_graph | R Documentation |
Displays a concise summary of an MST completion graph object, including basic graph statistics and parameter information.
## S3 method for class 'mst_completion_graph'
print(x, ...)
x |
An object of class |
... |
Additional arguments (currently ignored). |
This method provides a human-readable overview of the graph structure without
displaying the full adjacency lists. For detailed inspection of graph
components, use direct indexing (e.g., x$mst_adj_list) or the
summary method.
Invisibly returns the input object x.
summary.mst_completion_graph for more detailed summaries,
create.cmst.graph for creating MST completion 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")
print(graph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.