python-igraph API reference

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

class documentation

class LightToDarkEdgeDrawer(AlphaVaryingEdgeDrawer):

View In Hierarchy

Edge drawer implementation that draws undirected edges as straight lines and directed edges by using an alpha value of zero (total transparency) at the source and an alpha value of one (full opacity) at the destination. The alpha value is interpolated in-between.

Method __init__ Constructs the edge drawer.

Inherited from AlphaVaryingEdgeDrawer:

Instance Variable alpha_at_src Undocumented
Instance Variable alpha_at_dest Undocumented
Method draw_directed_edge Draws a directed edge.

Inherited from AbstractCairoEdgeDrawer (via AlphaVaryingEdgeDrawer):

Instance Variable context Undocumented
Instance Variable palette Undocumented
Instance Variable VisualEdgeBuilder Undocumented
Method draw_loop_edge Draws a loop edge.
Method draw_undirected_edge Draws an undirected edge.
Method _construct_visual_edge_builder Construct the visual edge builder that will collect the visual attributes of an edge when it is being drawn.

Inherited from AbstractEdgeDrawer (via AlphaVaryingEdgeDrawer, AbstractCairoEdgeDrawer):

Method get_label_position Returns the position where the label of an edge should be drawn. The default implementation returns the midpoint of the edge and an alignment that tries to avoid overlapping the label with the edge.
Static Method _curvature_to_float Converts values given to the 'curved' edge style argument in plotting calls to floating point values.
def __init__(self, context, palette):

Constructs the edge drawer.

Parameterscontexta Cairo context on which the edges will be drawn.
palettethe palette that can be used to map integer color indices to colors when drawing edges
API Documentation for python-igraph, generated by pydoctor 21.2.2 at 2021-10-18 16:23:19.