Constructors¶
This page lists the constructors of PBR.
-
libsemigroups::PBR::PBR(initializer_list_type<int32_t> left, initializer_list_type<int32_t> right)¶
Construct from adjacencies
1tonand-1to-n.The parameters
leftandrightshould be containers of \(n\) vectors of integer values, so that the vector in position \(i\) ofleftis the list of points adjacent to \(i\) in the PBR, and the vector in position \(i\) ofrightis the list of points adjacent to \(n + i\) in the PBR. A negative value \(i\) corresponds to \(n - i\).See also
libsemigroups::validate(PBR const&) and make(initializer_list_type<int32_t>, initializer_list_type<int32_t>)
Warning
No checks whatsoever on the validity of
leftorrightare performed.- Parameters:
left – container of adjacencies of
1tonright – container of adjacencies of
n+ 1 to2n.
- Throws:
(None) – This function guarantees not to throw a
LibsemigroupsException.
-
explicit libsemigroups::PBR::PBR(initializer_list_type<uint32_t> x)¶
Construct from adjacencies
0to2n - 1.The parameter
xmust be a container of vectors ofuint32_twith size \(2n\) for some integer \(n\), the vector in position \(i\) is the list of points adjacent to \(i\) in the PBR constructed.See also
Warning
No checks whatsoever on the validity of
xare performed.- Parameters:
x – the container of vectors of adjacencies.
- Throws:
(None) – This function guarantees not to throw a
LibsemigroupsException.
-
explicit libsemigroups::PBR::PBR(size_t n)¶
Construct empty PBR of given degree.
- Parameters:
n – the degree
- Throws:
(None) – This function guarantees not to throw a
LibsemigroupsException.
-
libsemigroups::PBR::PBR(vector_type<int32_t> left, vector_type<int32_t> right)¶
Construct from adjacencies
1tonand-1to-n.The parameters
leftandrightshould be containers of \(n\) vectors of integer values, so that the vector in position \(i\) ofleftis the list of points adjacent to \(i\) in the PBR, and the vector in position \(i\) ofrightis the list of points adjacent to \(n + i\) in the PBR. A negative value \(i\) corresponds to \(n - i\).See also
libsemigroups::validate(PBR const&) and make(initializer_list_type<int32_t>, initializer_list_type<int32_t>)
Warning
No checks whatsoever on the validity of
leftorrightare performed.- Parameters:
left – container of adjacencies of
1tonright – container of adjacencies of
n+ 1 to2n.
- Throws:
(None) – This function guarantees not to throw a
LibsemigroupsException.
-
explicit libsemigroups::PBR::PBR(vector_type<uint32_t> x)¶
Construct from adjacencies
0to2n - 1.The parameter
xmust be a container of vectors ofuint32_twith size \(2n\) for some integer \(n\), the vector in position \(i\) is the list of points adjacent to \(i\) in the PBR constructed.See also
Warning
No checks whatsoever on the validity of
xare performed.- Parameters:
x – the container of vectors of adjacencies.
- Throws:
(None) – This function guarantees not to throw a
LibsemigroupsException.