cellcomplex.gmap.gmap module¶
-
class
cellcomplex.gmap.gmap.GMap(degree=2)[source]¶ Bases:
object-
are_linked_darts(degree, dart1, dart2)[source]¶ Are the two darts linked with a relation alpha_degree
-
are_sewable_dart(dart1, dart2, degree=None)[source]¶ Check if two elements of degree ‘degree’ that start at dart1 and dart2 are sewable.
-
check_validity()[source]¶ Test the validity of the structure. Check if there is pending dart for alpha_0 and alpha_1 (fixed point)
-
expand(gmap, degree, mapping)[source]¶ Insert gmap into self. links between gmap and self are specified using ‘degree’ and ‘mapping’. ‘mapping’ gives a mapping between darts of gmap to darts of self.
-
get_embedding_dart(propnameordict, degree, dart)[source]¶ Return the dart that contains the embedding. If no dart still exists, return dart
-
get_embedding_dart_and_value(propnameordict, degree, dart)[source]¶ Return the dart that contains the embedding. If no dart still exists, return dart
-
insert(gmap, degree, mapping)[source]¶ Insert gmap into self. links between gmap and self are specified using ‘degree’ and ‘mapping’. ‘mapping’ gives a mapping between darts of gmap to darts of self.
-
is_expansible(gmap, degree, mapping)[source]¶ Test if gmap can be inserted into self. links between gmap and self are specified using ‘degree’ and ‘mapping’. ‘mapping’ gives a mapping between darts of gmap to darts of self.
-
is_insertable(gmap, degree, mapping)[source]¶ Test if gmap can be inserted into self. links between gmap and self are specified using ‘degree’ and ‘mapping’. ‘mapping’ gives a mapping between darts of gmap to darts of self.
-
is_valid()[source]¶ Test the validity of the structure. Check if there is pending dart for alpha_0 and alpha_1 (fixed point)
-
orbit(dart, list_of_alpha_value)[source]¶ Return the orbit of dart using a list of alpha relation. Example of use: gmap.orbit(0,[0,1]). In python, you can use the set structure to process only once all darts of the orbit.
-
orbit_alphas_for_elements(degree, maxdegree=None)[source]¶ Return the alpha value for the orbit giving an element of a given degree. For instance a vertex is given by the orbit <alpha_1, …., alpha_gmap_degree>.
-
orbit_alphas_to_sew(degree)[source]¶ Return the alpha value for the orbit to sew: <0, degree -2, degree +2, …, gmap.degree alphas_for_orbits_to_sew = { 2 : { 0 : [2], 1 : None , 2 : [0] },
3 : { 0 : [2,3], 1: [3], 2 : [0], 3 : [0,1] } }
-
orbit_iter(dart, list_of_alpha_value)[source]¶ Return the orbit of dart using a list of alpha relation. Example of use: gmap.orbit(0,[0,1]). In python, you can use the set structure to process only once all darts of the orbit.
-
orderedorbit(dart, list_of_alpha_value)[source]¶ Return the orbit of dart using a list of alpha relation. Example of use. gmap.orbit(0,[0,1]). Warning: No fixed point for the given alpha should be contained.
-
orderedorbit_iter(dart, list_of_alpha_value)[source]¶ Return the orbit of dart using a list of alpha relation. Example of use. gmap.orbit(0,[0,1]). Warning: No fixed point for the given alpha should be contained.
-
overlink_darts(degree, dart1, dart2)[source]¶ Link the two darts with a relation alpha_degree. Do not check if they are free
-
pointvalency(pointdart)¶
-
set_position(dart, position)[source]¶ Associate coordinates with the vertex <alpha_1,…,alpha_i>(dart)
-
sew_dart(dart1, dart2, degree=None, verbose=False)[source]¶ Sew two elements of degree ‘degree’ that start at dart1 and dart2. Determine first the orbits of dart to sew. Sew pairs of corresponding darts.
-