Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, *args, **kwargs):
super(InteractiveHypergraph, self).__init__(*args, **kwargs)
# bookkeeping
self.hypernode_to_nodes = dict()
# for redrawing after fusion
self.kwargs = kwargs
# set up ability to trigger fusion by key-press
self.fig.canvas.mpl_connect('key_press_event', self._on_key_group_ungroup)