Addition arguments get passed to head()
function.
# S3 method for sbm_network print(x, ...)
x | Object of class |
---|---|
... | Arguments passed to |
Output of the number of nodes and edges in model along with indication of if a model has been initialized
Other helpers:
build_score_fn()
,
combination_indices()
,
get_sweep_pair_counts()
,
get_sweep_results()
,
rolling_mean()
,
verify_model()
# 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 #> ... #>