Skip to contents

Print Method for Maximal Packing Results

Usage

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

Arguments

x

An object of class "maximal_packing"

...

Additional arguments (currently ignored)

Value

Invisible copy of x

Examples

x <- list(
  graph = create.graph("chain", 4),
  graph_diameter = 3,
  max_packing_radius = 1.5,
  grid_vertices = c(1L, 4L)
)
class(x) <- "maximal_packing"

x
#> Maximal Packing Result
#> ----------------------
#> Number of vertices in graph: 4 
#> Graph diameter: 3 
#> Packing radius: 1.5 
#> Number of packing vertices: 2 
#> Packing vertices: 1, 4