this doesn't work like you think - you can't have objects as keys; instead it will convert the object into its string representation (which, for all objects, returns the string literal "[object Object]"

aka all nodes map to the same key