check_adjacency_cpp: C++ implementation to check if a matrix is an adjacency...

View source: R/RcppExports.R

check_adjacency_cppR 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.


SeqNet documentation built on Oct. 10, 2026, 5:06 p.m.