pypath.visual.igraph_drawing.vertex.DefaultVertexDrawer§

class pypath.visual.igraph_drawing.vertex.DefaultVertexDrawer(context, bbox, palette, layout)[source]§

Bases: AbstractCairoVertexDrawer

The default vertex drawer implementation of igraph.

__init__(context, bbox, palette, layout)[source]§

Constructs the vertex drawer and associates it to the given Cairo context and the given L{BoundingBox}.

@param context: the context on which we will draw @param bbox: the bounding box within which we will draw.

Can be anything accepted by the constructor of L{BoundingBox} (i.e., a 2-tuple, a 4-tuple or a L{BoundingBox} object).

@param palette: the palette that can be used to map integer

color indices to colors when drawing vertices

@param layout: the layout of the vertices in the graph being drawn

Methods

__init__(context, bbox, palette, layout)

Constructs the vertex drawer and associates it to the given Cairo context and the given L{BoundingBox}.

draw(visual_vertex, vertex, coords)

Draws the given vertex.

draw(visual_vertex, vertex, coords)[source]§

Draws the given vertex.

@param visual_vertex: object specifying the visual properties of the

vertex. Its structure is defined by the VisualVertexBuilder of the L{DefaultGraphDrawer}; see its source code.

@param vertex: the raw igraph vertex being drawn @param coords: the X and Y coordinates of the vertex as specified by the

layout algorithm, scaled into the bounding box.