Skip to contents

Compute the Structural Hamming Distance (SHD) between two graphs.

Usage

shd(cg1, cg2, normalized = FALSE)

Arguments

cg1

A caugi_graph object.

cg2

A caugi_graph object.

normalized

Logical; if TRUE, returns the normalized SHD.

Value

An integer representing the SHD between the two graphs.

See also

Other metrics: aid(), hd()