GraphWindow#
- class graph_tool.draw.GraphWindow(g, pos, geometry, vprops=None, eprops=None, vorder=None, eorder=None, nodesfirst=False, update_layout=False, **kwargs)[source]#
Interactive GTK+ window containing a
GraphWidget
.- Parameters:
- g
Graph
Graph to be drawn.
- pos
VertexPropertyMap
Vector-valued vertex property map containing the x and y coordinates of the vertices.
- geometrytuple
Widget geometry.
- vprops
dict
(optional, default:None
) Dictionary with the vertex properties. Individual properties may also be given via the
vertex_<prop-name>
parameters, where<prop-name>
is the name of the property.- eprops
dict
(optional, default:None
) Dictionary with the edge properties. Individual properties may also be given via the
edge_<prop-name>
parameters, where<prop-name>
is the name of the property.- vorder
VertexPropertyMap
(optional, default:None
) If provided, defines the relative order in which the vertices are drawn.
- eorder
EdgePropertyMap
(optional, default:None
) If provided, defines the relative order in which the edges are drawn.
- nodesfirst
bool
(optional, default:False
) If
True
, the vertices are drawn first, otherwise the edges are.- update_layout
bool
(optional, default:True
) If
True
, the layout will be updated dynamically.- **kwargs
Any extra parameters are passed to
GraphWidget
andcairo_draw()
.
- g