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)[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) None
Methods
__init__([id, style, clazz, x, y, z, label])put_style(key, value)raw_style()set_label(*args, **kwargs)Deprecated since version 2.0.7.1.
set_point(*args, **kwargs)Deprecated since version 2.0.7.1.
set_xy(*args, **kwargs)Deprecated since version 2.0.7.1.
set_xyz(*args, **kwargs)Deprecated since version 2.0.7.1.
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_style(style)with_xy(x, y)with_xyz(x, y, z)Attributes
CSS class string.
idLabel the object
x coordinate
y coordinate
z coordinate
- clazz: Optional[str] = None
CSS class string.
- label: Optional[str] = None
Label the object
- set_label(*args, **kwargs)
Deprecated since version 2.0.7.1: This will be removed in 2.2. Use with…().
- set_point(*args, **kwargs)
Deprecated since version 2.0.7.1: This will be removed in 2.2. Use with…().
- set_xy(*args, **kwargs)
Deprecated since version 2.0.7.1: This will be removed in 2.2. Use with…().
- set_xyz(*args, **kwargs)
Deprecated since version 2.0.7.1: This will be removed in 2.2. Use with…().
- 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.
- x: Optional[float] = None
x coordinate
- y: Optional[float] = None
y coordinate
- z: Optional[float] = None
z coordinate