python-igraph API reference

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

class documentation

Abstract base class for graph drawers that draw on a Cairo canvas.

Method __init__ Constructs the graph drawer and associates it to the given Cairo context and the given BoundingBox.

Inherited from AbstractGraphDrawer:

Static Method ensure_layout Helper method that ensures that layout is an instance of Layout. If it is not, the method will try to convert it to a Layout according to the following rules:
Method draw Abstract method, must be implemented in derived classes.
Static Method _determine_edge_order Returns the order in which the edge of the given graph have to be drawn, assuming that the relevant keyword arguments (edge_order and edge_order_by) are given in kwds as a dictionary. If neither edge_order...
Static Method _determine_vertex_order Returns the order in which the vertices of the given graph have to be drawn, assuming that the relevant keyword arguments (vertex_order and vertex_order_by) are given in kwds as a dictionary. If neither ...

Inherited from AbstractCairoDrawer (via AbstractGraphDrawer):

Method bbox.setter Sets the bounding box of the drawing area where this drawer will draw.
Instance Variable context Undocumented
Property bbox The bounding box of the drawing area where this drawer will draw.
Method _mark_point Marks the given point with a small circle on the canvas. Used primarily for debugging purposes.
Instance Variable _bbox Undocumented
def __init__(self, context, bbox):

Constructs the graph drawer and associates it to the given Cairo context and the given BoundingBox.

Parameters
contextthe context on which we will draw
bboxthe bounding box within which we will draw. Can be anything accepted by the constructor of BoundingBox (i.e., a 2-tuple, a 4-tuple or a BoundingBox object).