tests/testthat/test-sgraph_utils.R

test_add_igraph_info = function() {
  df_nodes = cbind.data.frame(name = igraph::vertex_attr(lesMis, 'label'),
    log10_degree = degree(lesMis))
 
  igraph = add_igraph_info(lesMis, df_nodes)
 
  sig <- sigma_from_igraph(lesMis) %>%
    add_node_size(size_vector = 'log10_degree')
  expect_true(TRUE)
}
test_that('add_igraph_info', test_add_igraph_info())

Try the sgraph package in your browser

Any scripts or data that you put into this service are public.

sgraph documentation built on Sept. 12, 2024, 7:06 a.m.