pyfeyn2.feynmandiagram.Vertex

class pyfeyn2.feynmandiagram.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: ~typing.Optional[str] = None, style: ~cssutils.css.cssstyledeclaration.CSSStyleDeclaration = <factory>, clazz: ~typing.Optional[str] = None, x: ~typing.Optional[float] = None, y: ~typing.Optional[float] = None, z: ~typing.Optional[float] = None, label: ~typing.Optional[str] = None, shape: ~typing.Optional[str] = None) None

Methods

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

put_style(key, value)

raw_style()

set_label(*args, **kwargs)

set_point(*args, **kwargs)

set_xy(*args, **kwargs)

set_xyz(*args, **kwargs)

with_class(clazz)

with_id(value[, k])

Set id to value and return self.

with_label(value[, k])

Set label to value and return self.

with_point(p)

with_shape(value[, k])

Set shape to value and return self.

with_style(style)

with_xy(x, y)

with_xyz(x, y, z)

Attributes

clazz

CSS class string.

id

label

Label the object

shape

Shape of the vertex

x

x coordinate

y

y coordinate

z

z coordinate

clazz: Optional[str] = None

CSS class string.

label: Optional[str] = None

Label the object

shape: Optional[str] = None

Shape of the vertex

style: CSSStyleDeclaration

CSS style string.

with_id(value, k='id')

Set id to value and return self.

with_label(value, k='label')

Set label to value and return self.

with_shape(value, k='shape')

Set shape to value and return self.

x: Optional[float] = None

x coordinate

y: Optional[float] = None

y coordinate

z: Optional[float] = None

z coordinate