title: Get the attribute of neighbor node in networkx graph python
body: <p>I would like to get the attribute of the neighboring node of the networkx graph. </p>
  
  <pre><code>import networkx as nx
  G=nx.DiGraph()
  G.add_node(10, time = '1PM')
  G.add_node(20, time = '5PM')
  G.add_node(30, time = '10PM')
  
  G.add_edges_from([(10,20),(20,30)])
  </code></pre>
  
  <p>I would like to know the attribute of 20 from node 10 or 30, the attribute of 10 from node 20.</p>
  
  <p>This is how I started to approach but couldn't figure out it. </p>
  
  <pre><code>For node1, node2 in G.nodes(data =True):
      print (G.neighbors(node1)['time'])
  </code></pre>
  
  <p>Is there any way to do this? I appreciate your help.</p>