python-igraph API reference

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

class documentation

Abstract vertex drawer object from which all concrete vertex drawer implementations are derived.

Method __init__ Constructs the vertex drawer and associates it to the given palette.
Instance Variable layout Undocumented
Instance Variable palette Undocumented
Method draw Draws the given vertex.
def __init__(self, palette, layout):

Constructs the vertex drawer and associates it to the given palette.

Parameterspalettethe 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
layout =

Undocumented

palette =

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.