pyfeyn2.feynmandiagram.Line

class pyfeyn2.feynmandiagram.Line(source: Optional[str] = '', target: Optional[str] = '')[source]

Bases: Targeting, Sourcing

__init__(source: Optional[str] = '', target: Optional[str] = '') None

Methods

__init__([source, target])

connect(source, target)

set_source(*args, **kwargs)

set_target(*args, **kwargs)

with_source(source)

with_target(target)

Attributes

source

Source of the object

target

Target of the object

source: Optional[str] = ''

Source of the object

target: Optional[str] = ''

Target of the object