Data types

The following datatypes are used for type hinting.

pyrigi.data_type.Vertex

Any hashable type can be used for a Vertex.

alias of Hashable

pyrigi.data_type.Edge

An Edge is an unordered pair of Vertices.

alias of set[Hashable] | Tuple[Hashable, Hashable] | list[Hashable]

pyrigi.data_type.Coordinate = int | float | str

An integer, float or a string interpretable by sympify().

pyrigi.data_type.Point

A Point is a Sequence of Coordinates whose length is the dimension of its affine space.

alias of Sequence[int | float | str]

pyrigi.data_type.point_to_vector(point)[source]

Return point as single column sympy Matrix.

Parameters:

point (Sequence[int | float | str])

Return type:

MutableDenseMatrix