python-igraph manual

For using igraph from Python

   Home       Trees       Indices       Help   
Package igraph :: Package drawing :: Module vertex :: Class AbstractVertexDrawer
[hide private]

Class AbstractVertexDrawer

source code

                object --+    
                         |    
baseclasses.AbstractDrawer --+
                             |
                            AbstractVertexDrawer
Known Subclasses:

Abstract vertex drawer object from which all concrete vertex drawer implementations are derived.

Instance Methods [hide private]
 
__init__(self, palette, layout)
Constructs the vertex drawer and associates it to the given palette.
source code
 
draw(self, visual_vertex, vertex, coords)
Draws the given vertex.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, palette, layout)
(Constructor)

source code 

Constructs the vertex drawer and associates it to the given palette.

Parameters:
  • palette - the palette that can be used to map integer color indices to colors when drawing vertices
  • layout - the layout of the vertices in the graph being drawn
Overrides: object.__init__

draw(self, visual_vertex, vertex, coords)

source code 

Draws the given vertex.

Parameters:
  • visual_vertex - object specifying the visual properties of the vertex. Its structure is defined by the VisualVertexBuilder of the DefaultGraphDrawer; see its source code.
  • vertex - the raw igraph vertex being drawn
  • coords - the X and Y coordinates of the vertex as specified by the layout algorithm, scaled into the bounding box.
Overrides: baseclasses.AbstractDrawer.draw

   Home       Trees       Indices       Help