python-igraph API reference

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

module documentation

Utility classes for drawing routines.

Class Rectangle Class representing a rectangle.
Class BoundingBox Class representing a bounding box (a rectangular area) that encloses some objects.
Class FakeModule Fake module that raises an exception for everything
Class Point Class representing a point on the 2D plane.
Function calculate_corner_radii No summary
Function euclidean_distance Computes the Euclidean distance between points (x1,y1) and (x2,y2).
Function evaluate_cubic_bezier Evaluates the Bezier curve from point (x0,y0) to (x3,y3) via control points (x1,y1) and (x2,y2) at t. t is typically in the range [0; 1] such that 0 returns (x0, y0) and 1 returns (x3, y3).
Function intersect_bezier_curve_and_circle Binary search solver for finding the intersection of a Bezier curve and a circle centered at the curve's end point.
Function str_to_orientation Tries to interpret a string as an orientation value.
def calculate_corner_radii(points, corner_radius):

Given a list of points and a desired corner radius, returns a list containing proposed corner radii for each of the points such that it is ensured that the corner radius at a point is never larger than half of the minimum distance between the point and its neighbors.

def euclidean_distance(x1, y1, x2, y2):

Computes the Euclidean distance between points (x1,y1) and (x2,y2).

def evaluate_cubic_bezier(x0, y0, x1, y1, x2, y2, x3, y3, t):

Evaluates the Bezier curve from point (x0,y0) to (x3,y3) via control points (x1,y1) and (x2,y2) at t. t is typically in the range [0; 1] such that 0 returns (x0, y0) and 1 returns (x3, y3).

def intersect_bezier_curve_and_circle(x0, y0, x1, y1, x2, y2, x3, y3, radius, max_iter=10):

Binary search solver for finding the intersection of a Bezier curve and a circle centered at the curve's end point.

Returns the x, y coordinates of the intersection point.

def str_to_orientation(value, reversed_horizontal=False, reversed_vertical=False):

Tries to interpret a string as an orientation value.

The following basic values are understood: ``left-right``, ``bottom-top``, ``right-left``, ``top-bottom``. Possible aliases are:

  • ``horizontal``, ``horiz``, ``h`` and ``lr`` for ``left-right``
  • ``vertical``, ``vert``, ``v`` and ``tb`` for top-bottom.
  • ``lr`` for ``left-right``.
  • ``rl`` for ``right-left``.

``reversed_horizontal`` reverses the meaning of ``horizontal``, ``horiz`` and ``h`` to ``rl`` (instead of ``lr``); similarly, ``reversed_vertical`` reverses the meaning of ``vertical``, ``vert`` and ``v`` to ``bt`` (instead of ``tb``).

Returns one of ``lr``, ``rl``, ``tb`` or ``bt``, or throws ``ValueError`` if the string cannot be interpreted as an orientation.

API Documentation for python-igraph, generated by pydoctor 21.2.2 at 2021-10-18 16:23:19.