Package networkx :: Package drawing :: Module nx_vtk
[hide private]
[frames] | no frames]

Module nx_vtk

source code

Draw networks in 3d with vtk.

References:



Date: $Date: 2005-06-17 08:10:29 -0600 (Fri, 17 Jun 2005) $

Author: Aric Hagberg (hagberg@lanl.gov)

Functions [hide private]
 
draw_nxvtk(G, node_pos)
Draw networkx graph in 3d with nodes at node_pos.
source code
 
_test_suite() source code
Variables [hide private]
  __credits__ = ''
  __revision__ = '$Revision: 1051 $'
Function Details [hide private]

draw_nxvtk(G, node_pos)

source code 

Draw networkx graph in 3d with nodes at node_pos.

See layout.py for functions that compute node positions.

node_pos is a dictionary keyed by vertex with a three-tuple of x-y positions as the value.

The node color is plum. The edge color is banana.

All the nodes are the same size.