The function finds symmetric differences between lists of neighbours (ordering of objects does not matter), returning a nb neighbour list of those found
diffnb(x, y, verbose=NULL, legacy=TRUE)
Arguments
x: an object of class nb
y: an object of class nb
verbose: default NULL, use global option value; report regions ids taken from object attribute "region.id" with differences, ignored when legacy= is FALSE
legacy: default TRUE; use legacy code; if FALSE use differences between sparse matrix representations