#NEWLINE# def getNodeNumber( self , t ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return self . nodeToNumberMap [ t ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# self . nodeToNumberMap [ t ] = self . nodeNumber #NEWLINE# self . nodeNumber += 1 #NEWLINE# return ( self . nodeNumber - 1 )