Home | Trees | Index | Help |
---|
Module graphopt :: Class graphopt |
|
object
--+
|
graphopt
Graph object with physics model for optimized layout. Arguments: filename -- optional graphopt or dot-format file to import
Method Summary | |
---|---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature... | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... | |
Add an edge to our model. | |
Perform the number of iterations of movement on the model. | |
Export model to Postscript output file. | |
Export model to Visio output file. | |
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 model to graphopt output file. | |
Make sure no two nodes are at the exact same location. | |
Set our physics parameters. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... |
Method Details |
---|
__init__(...)
|
__new__(T, S, ...)T.__new__(S, ...) -> a new object with type S, a subtype of T
|
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 |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Jan 26 12:04:09 2006 | http://epydoc.sf.net |