cellcomplex.gmap.gmap_tp module¶
-
class
cellcomplex.gmap.gmap_tp.GMap[source]¶ Bases:
object-
adjacent_cells(dart, degree)[source]¶ Return all the elements of degree degree that are adjacent to the element dart with respect to the alpha relation of degree degree. (Typically all points sharing an edge with a point) For this iterate over all the dart of the orbit of (dart, degree). For each dart d of this orbit, get its neighbor n (alpha degree) and remove its orbit (n, degree) from the set of darts to consider. See function incident_cells for inspiration.
-
cell_center(dart, degree)[source]¶ Generic function to compute the center of any elements of any degree
-
elements(degree)[source]¶ Return one dart per element of degree. For this, consider all darts as initial set S. Take the first dart d, remove from the set all darts of the orbit starting from d and corresponding to element of degree degree. Take then next element from set S and do the same until S is empty. Return all darts d that where use
-
get_embedding_dart(dart, degree, propertydict)[source]¶ Check if a dart of the orbit representing the element of degree degree has already been associated with a value in propertydict. If yes, return this dart, else return the dart passed as argument
-
get_position(dart)[source]¶ Retrieve the coordinates associated to the vertex <alpha_1, alpha_2>(dart)
-
incident_cells(dart, degree, incidentdegree)[source]¶ Return all the element of degree incidentdegree that are incident to the element dart of degree degree. (Typically all edges around a point) For this iterate over all the dart of the orbit of (dart, degree). For each dart d of this orbit, get all the darts coresponding to the orbit of the element (d, incidentdegree) and remove them from the original set. See function elements for inspiration.
-
insert_edge(dart)[source]¶ Insert an edge at the point represented by dart. Return a dart corresponding to the dandling edge end.
-
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.
-
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.
-
set_position(dart, position)[source]¶ Associate coordinates with the vertex <alpha_1,alpha_2>(dart)
-