pyfeyn2.feynmandiagram.Vertex
- class pyfeyn2.feynmandiagram.Vertex(*args, **kwargs)[source]
Bases:
VertexMethods
__init__(*args, **kwargs)get_style_property(key)put_style(key, value)put_styles(**kwargs)raw_style()with_class(clazz)with_color(color)with_id(id)set id
with_label(value[, k])Set label to value and return self.
generate new id
with_point(p)with_shape(value[, k])Set shape to value and return self.
with_style(style)with_style_properties(**kwargs)with_style_property(key, value)with_x(x)with_xy(x, y)with_xyz(x, y, z)with_y(y)Attributes
CSS class string.
idlabelShape of the vertex
x coordinate
y coordinate
z coordinate
CSS style string.
- clazz: str | None = None
CSS class string.
- put_style(key, value)
Deprecated since version use: with_style_property
- put_styles(**kwargs)
Deprecated since version use: with_style_properties
- shape: str | None = None
Shape of the vertex
- style: CSSString
CSS style string.
- with_id(id: str)
set id
- with_label(value, k='label')
Set label to value and return self.
- with_new_id()
generate new id
- with_shape(value, k='shape')
Set shape to value and return self.
- x: float | None = None
x coordinate
- y: float | None = None
y coordinate
- z: float | None = None
z coordinate