python-igraph manual

For using igraph from Python

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

Class LightToDarkEdgeDrawer

source code

        object --+        
                 |        
AbstractEdgeDrawer --+    
                     |    
AlphaVaryingEdgeDrawer --+
                         |
                        LightToDarkEdgeDrawer

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.

Instance Methods [hide private]
 
__init__(self, context)
Constructs the edge drawer.
source code

Inherited from AlphaVaryingEdgeDrawer: draw_directed_edge

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)
(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)

   Home       Trees       Indices       Help