A list of two dataframes, one with node data containing bin membership,
datapoints per cluster, and cluster dispersion, and one with edge data
containing sources, targets, and weights representing overlap strength.
Arguments
data
A data frame.
dist1
A distance matrix for the data frame; this will be used to ball the data.
dist2
Another distance matrix for the data frame; this will be used to cluster the data after balling.
eps
A positive real number for your desired ball radius.
clusterer
A function which accepts a list of distance matrices as input, and returns the results of clustering done on each distance matrix.