optimal algorithm grouping data in javascript Languages

optimal algorithm grouping data in javascript

The following (simplified) json type of data defines a Contact:There is the following group of data:Goal is to find the groups that belong together using javascript(optionally in lodash, but main idea is to get the algorithm clear) according to the following constraint: a contact belongs to a group when any...
Read More
identify consecutively overlapping segments in R Languages

identify consecutively overlapping segments in R

I need to aggregate overlapping segments into a single segment ranging all connected segments. Note that a simple foverlaps cannot detect connections between non overlapping but connected segments, see the example for clarification. If it would rain on my segments in my plot I am looking for the stretches of...
Read More