PBR¶
This page contains the documentation for functionality in
libsemigroups_pybind11 for PBR. Partitioned binary relations
(PBRs) are a generalisation of bipartitions, which were introduced by Martin
and Mazorchuk.
Copy constructor. |
|
Returns the nodes adjacent to the given node. |
|
Equality comparison. |
|
Less than comparison. |
|
Right multiply |
|
Returns the degree of a PBR. |
|
Returns the identity |
|
Overloaded function. |
|
Returns the identity |
|
Multiply two |
- class PBR(self: _libsemigroups_pybind11.PBR, that: _libsemigroups_pybind11.PBR)¶
Copy constructor.
- Parameters
that (PBR) -- the
PBRto copy.
- __eq__(self: _libsemigroups_pybind11.PBR, that: _libsemigroups_pybind11.PBR) bool¶
Equality comparison.
Returns
Trueifselfequalsthatby comparing their image values.- Parameters
that (PBR) -- the
PBRfor comparison.- Returns
A
bool.
- __getitem__(self: _libsemigroups_pybind11.PBR, i: int) List[int]¶
Returns the nodes adjacent to the given node.
- Parameters
i (int) -- an integer
- Returns
A
int.
- __lt__(self: _libsemigroups_pybind11.PBR, that: _libsemigroups_pybind11.PBR) bool¶
Less than comparison.
Returns
Trueifselfis less thanthat.- Parameters
that (PBR) -- the
PBRfor comparison.- Returns
A
bool.
- __mul__(self: _libsemigroups_pybind11.PBR, that: _libsemigroups_pybind11.PBR) _libsemigroups_pybind11.PBR¶
Right multiply
selfbythat.- Parameters
that (PBR) -- the
PBRto multiply with.- Returns
A
PBR.
- degree(self: _libsemigroups_pybind11.PBR) int¶
Returns the degree of a PBR.
- Parameters
None.
- Returns
An
int.
- identity(self: _libsemigroups_pybind11.PBR) _libsemigroups_pybind11.PBR¶
Returns the identity
PBRwith degreedegree().- Parameters
None.
- Returns
A
PBR.
- static make(*args, **kwargs)¶
Overloaded function.
make(left: List[List[int]], right: List[List[int]]) -> _libsemigroups_pybind11.PBR
Construct and validate.
- Parameters
left (List[List[int]]) - the 1st argument to forward to the constructor.
right (List[List[int]]) - the 2nd argument to forward to the constructor.
- Returns
A PBR constructed from left and right, and validated.
make(adj: List[List[int]]) -> _libsemigroups_pybind11.PBR
Construct and validate.
- Parameters
adj (List[List[int]]) - the list of adjacencies.
- Returns
A new
PBR.
- static make_identity(n: int) _libsemigroups_pybind11.PBR¶
Returns the identity
PBRwith specified degree.- Parameters
n (int) - the degree.
- Returns
A
PBR.
- product_inplace(self: _libsemigroups_pybind11.PBR, x: _libsemigroups_pybind11.PBR, y: _libsemigroups_pybind11.PBR, thread_id: int) None¶
Multiply two
PBRobjects and store the product inself.