View source: R/assert_adjacency.R
assert_adjacency | R Documentation |
Imports a matrix and tests whether it is an adjacency in edgynode format.
assert_adjacency(x)
x |
a |
An informative error if the test fails, NULL otherwise
Ilias Moutsopoulos and Hajk-Georg Drost
make_adjacency
, is_adjacency
# test with an already clean adjacency matrix
edgynode::assert_adjacency(edgynode::adjacency_clean_test_3)
# look at raw matrix
edgynode::adjacency_matrix_test_3
# convert raw matrix into a edgynode adjacency matrix
clean_matrix <- edgynode::make_adjacency(edgynode::adjacency_matrix_test_3)
# test converted matrix
edgynode::assert_adjacency(clean_matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.