code: def get_the_node_dict(G, name):
      
      for node in G.nodes(data=True):
          if node[0] == name:
              return node[1]
docs: Helper function that returns the node data
      of the node with the name supplied