Addition arguments get passed to head() function.

# S3 method for sbm_network
print(x, ...)

Arguments

x

Object of class sbm_network. (See new_sbm_network for more info.)

...

Arguments passed to head that are used to control preview of node and edge data frames.

Value

Output of the number of nodes and edges in model along with indication of if a model has been initialized

See also

Examples

# Build small object from simple edge dataframe small_edges <- dplyr::tribble( ~a_node, ~b_node, "a1", "b1", "a1", "b2", "a1", "b3", "a2", "b1", "a2", "b4", "a3", "b1" ) sbm_net <- new_sbm_network(small_edges, edges_from_col = a_node, edges_to_col = b_node) print(sbm_net)
#> SBM Network with 7 nodes of a single type and 6 edges. #> #> Nodes: # A tibble: 6 x 2 #> id type #> <chr> <chr> #> 1 a1 node #> 2 a2 node #> 3 a3 node #> 4 b1 node #> 5 b2 node #> 6 b3 node #> ... #> #> Edges: # A tibble: 6 x 2 #> a_node b_node #> <chr> <chr> #> 1 a1 b1 #> 2 a1 b2 #> 3 a1 b3 #> 4 a2 b1 #> 5 a2 b4 #> 6 a3 b1 #> ... #>