pyfeyn2.feynmandiagram.Vertex

class pyfeyn2.feynmandiagram.Vertex(*args, **kwargs)[source]

Bases: Vertex

__init__(*args, **kwargs)[source]

Deprecated since version 2.2.6.

Methods

__init__(*args, **kwargs)

Deprecated since version 2.2.6.

get_style_property(key)

put_style(key, value)

Deprecated since version 0.0.0.

put_styles(**kwargs)

Deprecated since version 0.0.0.

raw_style()

with_class(clazz)

with_color(color)

with_id(id)

set id

with_label(value[, k])

Set label to value and return self.

with_new_id()

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

clazz

CSS class string.

id

label

shape

Shape of the vertex

x

x coordinate

y

y coordinate

z

z coordinate

style

CSS style string.

clazz: str | None = None

CSS class string.

put_style(key, value)

Deprecated since version 0.0.0.

put_styles(**kwargs)

Deprecated since version 0.0.0.

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