Graph_distance: Compute number of errors

View source: R/ACutils_export.R

Graph_distanceR Documentation

Compute number of errors

Description

Takes two matrices containing 0s and 1s and compute the number of elements that are different. The diagonal may or may not be checked.

Usage

Graph_distance(G1, G2, diag = F)

Arguments

G1

binary matrix, only the upper part is used.

G2

binary matrix, only the upper part is used.

diag

boolean, if the diagonal has to be checked or not

Value

the number of elements that are different


alessandrocolombi/ACutils documentation built on March 3, 2023, 4:06 a.m.