List of all classes, functions and methods in python-igraph
class AlphaVaryingEdgeDrawer(AbstractEdgeDrawer):
Known subclasses: igraph.drawing.edge.DarkToLightEdgeDrawer
, igraph.drawing.edge.LightToDarkEdgeDrawer
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. |
Instance Variable | alpha_at_src |
Undocumented |
Instance Variable | alpha_at_dest |
Undocumented |
Method | draw_directed_edge |
Draws a directed edge. |
Inherited from AbstractEdgeDrawer
:
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 | 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. |
Method | _construct_visual_edge_builder |
Construct the visual edge builder that will collect the visual attributes of an edge when it is being drawn. |
Constructs the edge drawer.
Parameters | context | a Cairo context on which the edges will be drawn. |
alpha_at_src | Undocumented | |
alpha_at_dest | Undocumented | |
palette | the palette that can be used to map integer color indices to colors when drawing edges |
Draws a directed edge.
Parameters | edge | the edge to be drawn. Visual properties of the edge are defined by the attributes of this object. |
src_vertex | the source vertex. Visual properties are given again as attributes. | |
dest_vertex | the target vertex. Visual properties are given again as attributes. |