class documentation

Edge drawer implementation that draws undirected edges as straight lines and directed edges as tapered lines that are wider at the source and narrow at the destination.

Method draw_directed_edge Draws a directed edge.

Inherited from AbstractCairoEdgeDrawer:

Method __init__ Constructs the edge drawer.
Method draw_loop_edge Draws a loop edge.
Method draw_undirected_edge Draws an undirected edge.
Instance Variable context Undocumented
Instance Variable palette Undocumented
Instance Variable VisualEdgeBuilder Undocumented
Method _construct_visual_edge_builder Construct the visual edge builder that will collect the visual attributes of an edge when it is being drawn.

Inherited from AbstractEdgeDrawer (via AbstractCairoEdgeDrawer):

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.
Method get_label_rotation Get the rotation angle of the label to align with the edge.
Static Method _curvature_to_float Converts values given to the 'curved' edge style argument in plotting calls to floating point values.
def draw_directed_edge(self, edge, src_vertex, dest_vertex): (source)

Draws a directed edge.

Parameters
edgethe edge to be drawn. Visual properties of the edge are defined by the attributes of this object.
src_vertexthe source vertex. Visual properties are defined by the attributes of this object.
dest_vertexthe source vertex. Visual properties are defined by the attributes of this object.