Overlay a difference/intersection of two neighborSets

overlay_difference_neighbors(x, y, set1, set2, ...)

overlay_difference_shared_neighbors(x, y, set1, set2, type = "rank", ...)

overlay_intersect_neighbors(x, y, set1, set2, ...)

overlay_intersect_shared_neighbors(x, y, set1, set2, type = "rank", ...)

Arguments

x, y

numeric vectors to produce segments from

set1, set2

nearest neighbor graph indices to compare

type

Algorithm used to compute shared nearest neighbors graph