python-igraph manual

For using igraph from Python

   Home       Trees       Indices       Help   
Package igraph :: Package drawing :: Module edge :: Class AlphaVaryingEdgeDrawer
[hide private]

Class AlphaVaryingEdgeDrawer

source code

        object --+    
                 |    
AbstractEdgeDrawer --+
                     |
                    AlphaVaryingEdgeDrawer
Known Subclasses:

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.

Instance Methods [hide private]
 
__init__(self, context, alpha_at_src, alpha_at_dest)
Constructs the edge drawer.
source code
 
draw_directed_edge(self, edge, src_vertex, dest_vertex)
Draws a directed edge.
source code

Inherited from AbstractEdgeDrawer: draw_loop_edge, draw_undirected_edge, get_label_position

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from AbstractEdgeDrawer (private): _curvature_to_float

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, context, alpha_at_src, alpha_at_dest)
(Constructor)

source code 

Constructs the edge drawer.

Parameters:
  • context - a Cairo context on which the edges will be drawn.
  • palette - the palette that can be used to map integer color indices to colors when drawing edges
Overrides: object.__init__
(inherited documentation)

draw_directed_edge(self, edge, src_vertex, dest_vertex)

source code 

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.
Overrides: AbstractEdgeDrawer.draw_directed_edge
(inherited documentation)

   Home       Trees       Indices       Help