shd {bnstruct} | R Documentation |
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.
shd(g1, g2)
g1 |
first adjacency matrix. |
g2 |
second adjacency matrix. |