check_adjacency_cpp {SeqNet} | R Documentation |
C++ implementation to check if a matrix is an adjacency matrix
Description
C++ implementation to check if a matrix is an adjacency matrix
Usage
check_adjacency_cpp(m)
Arguments
m |
A matrix to check. |
Value
Returns 0 if the matrix is an adjacency matrix. If the matrix is not square, returns 1; if the diagonal entries are not all zero, returns 2; if the matrix is not symmetric, returns 3; if the matrix contains values other than 0 or 1, returns 4.
[Package SeqNet version 1.1.3 Index]