Skip to contents

Displays a concise summary of an MST completion graph object, including basic graph statistics and parameter information.

Usage

# S3 method for class 'mst_completion_graph'
print(x, ...)

Arguments

x

An object of class mst_completion_graph, as returned by create.cmst.graph.

...

Additional arguments (currently ignored).

Value

Invisibly returns the input object x.

Details

This method provides a human-readable overview of the graph structure without displaying the full adjacency lists. For detailed inspection of graph components, use graph accessors with the desired stage. summary method.

See also

summary.mst_completion_graph for more detailed summaries, create.cmst.graph for creating MST completion 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