Index library#
To use one of the described component here, you have to import them from revsymg.index_lib.
Types#
Vertices#
- IndexT#
Indices type.
- OrT#
Orientations type.
- Value:
binaries set \(\mathbb{B} = \{0 ; 1\}\)
Edges#
Constants#
For OrT type#
Oriented vertex#
Edge types#
- PRED_IND = 0#
The index of the predecessor.
For
EIndOrT,EIndOrIndT,EIndTandEIndIndTtypes.
- SUCC_IND = 1#
The index of the successor.
For
EIndOrT,EIndOrIndT,EIndTandEIndIndTtypes.
- E_IND = 2#
The index of edge’s index in the edge.
For both
EIndOrIndTandEIndIndTit corresponds toIndexTvalue.
For adjacency types#
Other#
- MULT_IID = 2#
Index multiplier.
Functions#
For IndOrT type#
- is_forward(vertex)#
Return True if the vertex is considered as forward.
- is_reverse(vertex)#
Return True if the vertex is considered as reverse.
For EIndOrT type#
- rev_edge(first_vertex, second_vertex)#
Return the reverse edge.
- is_canonical(first_vertex, second_vertex)#
Xor boolean function between edge and its reverse.
- Parameters:
- Returns:
True if \(\texttt{is_canonical}(\overline{edge})\) is False, else False
- Return type:
Notes
\(\texttt{is_canonical}\) is defined such as \(\texttt{is_canonical}(edge) \veebar \texttt{is_canonical}(\overline{edge})\)
- eindor_orientation(first_vertex, second_vertex)#
Return the edge orientation.
- Parameters:
- Returns:
Edge orientation
- Return type:
Notes
This is pure definition. Note that in case of self loop, return value is
FORWARD_INT