feynml.line.Line

class feynml.line.Line(source: str | None = '', target: str | None = '')[source]

Bases: Targeting, Sourcing

__init__(source: str | None = '', target: str | None = '') None

Methods

__init__([source, target])

connect(source, target)

goes_into(vertex)

Return True if the propagator goes into the vertex, False otherwise.

goes_out_of(vertex)

Return True if the propagator goes out of the vertex, False otherwise.

with_source(source)

with_target(target)

Attributes

source

Source of the object

target

Target of the object

goes_into(vertex)

Return True if the propagator goes into the vertex, False otherwise.

goes_out_of(vertex)

Return True if the propagator goes out of the vertex, False otherwise.

source: str | None = ''

Source of the object

target: str | None = ''

Target of the object