shd: compute the Structural Hamming Distance between two adjacency...

View source: R/util.R

shdR Documentation

compute the Structural Hamming Distance between two adjacency matrices.

Description

Compute the Structural Hamming Distance between two adjacency matrices, that is, the distance, in terms of edges, between two network structures. The lower the shd, the more similar are the two network structures.

Usage

shd(g1, g2)

Arguments

g1

first adjacency matrix.

g2

second adjacency matrix.


bnstruct documentation built on Dec. 1, 2022, 1:22 a.m.