Added enter and exit functions for graphnode objects