python-igraph API reference

List of all classes, functions and methods in python-igraph

class documentation

class DefaultVertexDrawer(AbstractCairoVertexDrawer):

View In Hierarchy

The default vertex drawer implementation of igraph.

Method __init__ Constructs the vertex drawer and associates it to the given Cairo context and the given BoundingBox.
Instance Variable VisualVertexBuilder Undocumented
Method draw Draws the given vertex.
Method _construct_visual_vertex_builder Undocumented

Inherited from AbstractVertexDrawer (via AbstractCairoVertexDrawer):

Instance Variable layout Undocumented
Instance Variable palette Undocumented

Inherited from AbstractCairoDrawer (via AbstractCairoVertexDrawer):

Instance Variable context Undocumented
Property bbox The bounding box of the drawing area where this drawer will draw.
Method bbox.setter Sets the bounding box of the drawing area where this drawer will draw.
Instance Variable _bbox Undocumented
Method _mark_point Marks the given point with a small circle on the canvas. Used primarily for debugging purposes.
def __init__(self, context, bbox, palette, layout):

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

Parameterscontextthe context on which we will draw
bboxthe bounding box within which we will draw. Can be anything accepted by the constructor of BoundingBox (i.e., a 2-tuple, a 4-tuple or a BoundingBox object).
palettethe palette that can be used to map integer color indices to colors when drawing vertices
layoutthe layout of the vertices in the graph being drawn
VisualVertexBuilder =

Undocumented

def _construct_visual_vertex_builder(self):

Undocumented

def draw(self, visual_vertex, vertex, coords):

Draws the given vertex.

Parametersvisual_vertexobject specifying the visual properties of the vertex. Its structure is defined by the VisualVertexBuilder of the DefaultGraphDrawer; see its source code.
vertexthe raw igraph vertex being drawn
coordsthe X and Y coordinates of the vertex as specified by the layout algorithm, scaled into the bounding box.
API Documentation for igraph, generated by pydoctor 21.2.2.