Hi all,
Iam a newbie in python and i need a library that supports 3D graphics in Python. My requirement is to construct a network (graph) out of it..I installed Networkx. This is a simple program i tried out ..The error iam getting is
Program
-------------
import networkx as NX
from networkx import *
G=Graph()
G.add_node(1)
G.add_nodes_from([2,3])
G.add_edge((1,2))
draw(G)
Error
--------
================================
Traceback (most recent call last):
File "C:/Python25/test.py", line 8, in <module>
draw(G)
NameError: name 'draw' is not defined
Tell me whether i hv to include any other library , inorder for the drawing functions in Networkx to work correctly.