bunch of stuff for voronoi-links thing.