function setupEvents(g, selection, raise) {
selection.on('mouseover.highlight', function(d) {
});
selection.on('mouseout.highlight', function(d) {
let path = d3.select(this).datum().path(selection.data()[0]);
let update = selection.data(path, node => node.data.name);
update.classed('selected', false);
});
selection.on('mouseover.tooltip', function(d) {
showTooltip(g, d3.select(this));
});
selection.on('mouseout.tooltip', function(d) {
g.select("#tooltip").remove();
});
}