title: Create a graph with nodes as circles with texts
body: <p>Using Networkx,I'm creating a graph ,</p>
  
  <p>I want to create each node as a circle and then define the edges.</p>
  
  <pre><code>    from tkinter import *
      import networkx as nx
      G=nx.Graph()
      G.add_node(0) # text say ,"Hello" placed in circle/rectangle 
  </code></pre>
  
  <p>From the example given <a href="http://www.ezgraphics.org/UserGuide/Text" rel="nofollow noreferrer">here</a>, I tried creating text label using canvas</p>
  
  <pre><code>Canvas.drawText(10, 20, "A Text String")
  </code></pre>
  
  <p>I get the following error,</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  AttributeError: type object 'Canvas' has no attribute 'drawText'
  </code></pre>
  
  <p>Any suggestions on how to resolve this or is there any alternative way of creating each node as a circle/rectangle containing text?</p>