Package NX :: Package drawing :: Module nx_pydot
[frames | no frames]

Module NX.drawing.nx_pydot

Import and export NX networks to dot format using pydot.

References:

Function Summary
  NX_from_pydot(D, result)
Creates an NX graph from an pydot graph D
  pydot_from_NX(N)
Creates a pydot graph from an NX graph N
  pydot_layout(G, **kwds)
Create layout using pydot and graphviz.
  read_dot(path)
Creates an NX graph from a dot file
  write_dot(G, path)
Write G to a graphviz dot file.

Variable Summary
str __author__ = 'Aric Hagberg (hagberg@lanl.gov)'
str __credits__ = ''
str __date__ = '$Date: 2005/04/01 18:36:44 $'
str __revision__ = '$Revision: 1.6 $'

Function Details

NX_from_pydot(D, result=False)

Creates an NX graph from an pydot graph D

pydot_from_NX(N)

Creates a pydot graph from an NX graph N

pydot_layout(G, **kwds)

Create layout using pydot and graphviz. Returns a dictionary of positions keyed by node.

>>> pos=pydot_layout(G)
>>> pos=pydot_layout(G,prog="twopi")

read_dot(path=False)

Creates an NX graph from a dot file

write_dot(G, path=False)

Write G to a graphviz dot file.


Variable Details

__author__

Type:
str
Value:
'Aric Hagberg (hagberg@lanl.gov)'                                      

__credits__

Type:
str
Value:
''                                                                     

__date__

Type:
str
Value:
'$Date: 2005/04/01 18:36:44 $'                                         

__revision__

Type:
str
Value:
'$Revision: 1.6 $'                                                     

Generated by Epydoc 2.1 on Mon Apr 11 10:59:20 2005 http://epydoc.sf.net