flipper.kernel.triangulation.Edge

class flipper.kernel.triangulation.Edge(source_vertex, target_vertex, label, reversed_edge=None)[source]

Bases: object

This represents an oriented edge, labelled with an integer.

It is specified by the vertices that it connects from / to. Its inverse edge is created automatically and is labelled with ~its label.

index
is_positive()[source]

Return if this edge is the positively oriented one.

label
reversed_edge
sign()[source]

Return the sign (+/-1) of this edge.

source_vertex
target_vertex