python-igraph API reference

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

class documentation
Edge drawer implementation that draws undirected edges as straight lines and directed edges by varying the alpha value of the specified edge color between the source and the destination.
Method __init__ Constructs the edge drawer.
Method draw​_directed​_edge Draws a directed edge.
Instance Variable alpha​_at​_dest Undocumented
Instance Variable alpha​_at​_src Undocumented

Inherited from AbstractCairoEdgeDrawer:

Method draw​_loop​_edge Draws a loop edge.
Method draw​_undirected​_edge Draws an undirected edge.
Instance Variable context Undocumented
Instance Variable palette Undocumented
Instance Variable ​Visual​Edge​Builder Undocumented
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 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.
Method get​_label​_rotation Get the rotation angle of the label to align 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, alpha_at_src, alpha_at_dest):
Constructs the edge drawer.
contexta 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
def draw_directed_edge(self, edge, src_vertex, dest_vertex):
Draws a directed edge.
edgethe edge to be drawn. Visual properties of the edge are defined by the attributes of this object.
src​_vertexthe source vertex. Visual properties are defined by the attributes of this object.
dest​_vertexthe source vertex. Visual properties are defined by the attributes of this object.
alpha_at_dest =


alpha_at_src =