is_adjacency: Check whether a matrix fulfills the 'edgynode' adjacency...

View source: R/is_adjacency.R

is_adjacencyR Documentation

Check whether a matrix fulfills the edgynode adjacency matrix convention

Description

Tests whether a matrix is an adjacency in edgynode format.

Usage

is_adjacency(x)

Arguments

x

a matrix object.

Value

The result of the test (TRUE/FALSE)

Author(s)

Ilias Moutsopoulos and Hajk-Georg Drost

See Also

make_adjacency, assert_adjacency

Examples

# test with an already clean adjacency matrix
edgynode::is_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::is_adjacency(clean_matrix)

drostlab/edgynode documentation built on March 29, 2024, 10:36 a.m.