Computes similarity between two network layers.
Value
A single numeric value. All methods except "hamming" return a
similarity (higher = more alike); "hamming" returns a
distance - the number of matrix cells whose edge presence differs
between the two layers - so lower means more alike and the value is not
bounded by 1. NA is returned when the denominator is undefined
("jaccard" with no edges in either layer, "overlap" with an
empty layer, "cosine" with an all-zero layer).
