Optional
epsilon: number = EPSILONan optional epsilon
Optional
makeAverage: boolean = truean optional request, should the merged vertex be a geometric average of all vertices which went into it?
summary of changes
This will shrink the number of vertices in the graph, if vertices are close within an epsilon, it will keep the first one, find the average of close points, and assign it to the remaining vertex. this has the potential to create circular and duplicate edges. Important note: if vertices are mismatched in dimension (2D and 3D), this might treat all vertices as 2D and duplicate vertices will be declared when they are actually not the same. Just make sure your graph's vertices are all of the same dimension.
a FOLD object