add nodetype discretemap, and add reactionid to nodes