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(InteractivelyConstructDestroyGraph, self).__init__(*args, **kwargs)
# link node/edge construction/destruction to key presses
self.fig.canvas.mpl_connect('key_press_event', self._on_key_add_or_destroy)