pypath.visual.igraph_drawing.vertex.AbstractVertexDrawer§
- class pypath.visual.igraph_drawing.vertex.AbstractVertexDrawer(palette, layout)[source]§
Bases:
AbstractDrawer
Abstract vertex drawer object from which all concrete vertex drawer implementations are derived.
- __init__(palette, layout)[source]§
Constructs the vertex drawer and associates it to the given palette.
- @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__
(palette, layout)Constructs the vertex drawer and associates it to the given palette.
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.