from application tropical
Abstract tropical curve, possibly with marked edges, edge lengths, vertex weights. Additional functionality for moduli space computations.
Scalar
: Edge length type.
We construct a tropical quartic curve of genus 3. Edge labels as in Fig. 4 (000) on Brodsky et al., Res. Math. Sci (2015).
> ($u,$v,$w,$x,$y,$z)=0..5; > $skeleton = new IncidenceMatrix([[$u,$v,$x],[$v,$w,$z],[$u,$w,$y],[$x,$y,$z]]); > $quartic = new tropical::Curve(EDGES_THROUGH_VERTICES=>$skeleton, EDGE_LENGTHS=>[1,2,3,4,5,6]);
These properties capture combinatorial information of the object. Combinatorial properties only depend on combinatorial data of the object like, e.g., the face lattice.
N_EDGES
Number of edges of the underlying graph.
N_VERTICES
Number of vertices (or nodes) of the underlying graph.
These properties relate to the weights of a tropical cycle.
EDGES_THROUGH_VERTICES
The rows of this IncidenceMatrix correspond to the nodes of the tropical graph, the columns to the edges. Therefore, each row records the indices of the edges incident to that vertex.
EDGE_LENGTHS
Each edge may have a Scalar length. These are taken into account when determining isomorphism, but not when calculating a MODULI_CELL.
Vector<Scalar>
GENUS
Genus of the abstract tropical curve, taking VERTEX_WEIGHTS
into account
INEQUALITIES
Some additional inequalities may be imposed on the lengths of edges. The columns of this Matrix correspond to the columns of EDGES_THROUGH_VERTICES.
Matrix<Scalar,NonSymmetric>
MARKED_EDGES
Some edges can be “marked”, which means they go off to infinity, and may not be permuted by any automorphism. By default there are no marked edges.
MODULI_CELL
The simplicial complex that records exactly one vertex for each isomorphism class of assignments of lengths to the edges. See the documentation of the function moduli_cell() for an example.
VERTEX_WEIGHTS
Each vertex may have an integer weight, which is affected by edge contractions: if a loop on that vertex is contracted, the weight increases by 1, if a non-loop edge incident to that vertex is contracted, the new weight is the sum of the weights of the two endpoints. Default weights are zero.