Skip to contents

Prints the summary generated by summary.gflow_graph.

Usage

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

Arguments

x

An object of class "summary.gflow_graph".

...

Additional arguments (currently unused).

Value

Invisibly returns the input object x.

Examples

gflow.graph <- list(
  adjacency.list = list(c(3L), integer(0), c(1L)),
  weight.list = list(0.8, numeric(0), 0.8),
  intersection.matrix = matrix(c(4, 0, 2,
                                 0, 3, 0,
                                 2, 0, 5),
                               nrow = 3, byrow = TRUE),
  basin.metadata = data.frame(
    label = c("m1", "m2", "M1"),
    type = c("ascending", "ascending", "descending"),
    size = c(4, 3, 5),
    extremum.vertex = c(2L, 5L, 3L),
    extremum.value = c(0.7, 1.1, 3.2)
  ),
  n.ascending = 2L,
  n.descending = 1L,
  edge.type = "all",
  min.intersection = 1L
)
class(gflow.graph) <- "gflow_graph"

graph.summary <- summary(gflow.graph)
graph.summary