title: Plotting networkx graph with node labels defaulting to node name
body: <p>NetworkX is powerful but I was trying to plot a graph which shows node labels by default and I was surprised how tedious this seemingly simple task could be for someone new to Networkx. There is an example which shows how to add labels to the plot.</p>
  
  <p><a href="https://networkx.github.io/documentation/latest/examples/drawing/labels_and_colors.html" rel="noreferrer">https://networkx.github.io/documentation/latest/examples/drawing/labels_and_colors.html</a></p>
  
  <p>The problem with this example is that it uses too many steps and methods when all I want to do is just show labels which are same as the node name while drawing the graph.</p>
  
  <pre><code># Add nodes and edges
  G.add_node("Node1")
  G.add_node("Node2")
  G.add_edge("Node1", "Node2")
  nx.draw(G)    # Doesn't draw labels. How to make it show labels Node1, Node2 along?
  </code></pre>
  
  <p>Is there a way to make <code>nx.draw(G)</code> show the default labels (Node1, Node2 in this case) inline in the graph?</p>