Module graphopt :: Class graphopt
[show private | hide private]
[frames | no frames]

Type graphopt

object --+
         |
        graphopt


Graph object with physics model for optimized layout.

Arguments:

filename -- optional graphopt or dot-format file to import

Method Summary
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  add_edge(...)
Add an edge to our model.
  advance_model(...)
Perform the number of iterations of movement on the model.
  export_as_ps(...)
Export model to Postscript output file.
  export_to_visio(...)
Export model to Visio output file.
  get_nodes_and_edges(...)
Return a dict of nodes with names as keys, and (x, y) coordinate tuples as values, and a list of (from_name, to_name) edge tuples.
  save(...)
Save model to graphopt output file.
  separate_nodes(...)
Make sure no two nodes are at the exact same location.
  set_model_parameters(...)
Set our physics parameters.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...

Method Details

__init__(...)
(Constructor)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides:
__builtin__.object.__init__

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
__builtin__.object.__new__

add_edge(...)

Add an edge to our model.

Arguments:

from_name -- source node string
to_name   -- destination node string

advance_model(...)

Perform the number of iterations of movement on the model.

Keyword arguments:

count -- default 1

export_as_ps(...)

Export model to Postscript output file.

Arguments:

filename -- output filename

export_to_visio(...)

Export model to Visio output file.

Arguments:

filename -- output filename

get_nodes_and_edges(...)

Return a dict of nodes with names as keys, and (x, y)
coordinate tuples as values, and a list of (from_name, to_name)
edge tuples.

save(...)

Save model to graphopt output file.

Arguments:

filename -- output filename

separate_nodes(...)

Make sure no two nodes are at the exact same location.

set_model_parameters(...)

Set our physics parameters.

Keyword arguments:

new_node_width      -- default 8
new_node_height     -- default 8
new_node_mass       -- default 30.0
new_node_charge     -- default 0.0003
new_spring_length   -- default 0
new_spring_constant -- 1
max_sa_movement     -- 1

Generated by Epydoc 2.1 on Thu Jan 26 12:04:09 2006 http://epydoc.sf.net