The graph now stores the node in a dictionary for quick node access