feynml.vertex.Vertex

class feynml.vertex.Vertex(id: Optional[str] = None, style: cssutils.css.cssstyledeclaration.CSSStyleDeclaration = <factory>, clazz: Optional[str] = None, x: Optional[float] = None, y: Optional[float] = None, z: Optional[float] = None, label: Optional[str] = None, shape: Optional[str] = None)[source]

Bases: Labeled, Point, Styled, Identifiable

__init__(id: str | None = None, style: ~cssutils.css.cssstyledeclaration.CSSStyleDeclaration = <factory>, clazz: str | None = None, x: float | None = None, y: float | None = None, z: float | None = None, label: str | None = None, shape: str | None = None) None

Methods

__init__([id, style, clazz, x, y, z, label, ...])

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