Prevent default select behavior for Sankey nodes and allow for selecting nodes through clicking or shift clicking them


I’m looking for a way to select nodes in a Sankey chart and hide/remove them and their links from the chart. The default lasso selection or box tool only combines nodes. I can’t find any documentation on this behavior. Is there a way to prevent the default selection behavior and somehow select nodes via clicking or shift-clicking them? And then redrawing the chart with the selecting nodes removed?

Thank you