in reply to Getting hash key tree

That looks like a state transition table and sounds a lot like a state machine. I'm not sure if a linked data structure like that will give you satisfactory representation, typically a state diagram helps.