feynml.interface.formcalc.topology.Topology
- class feynml.interface.formcalc.topology.Topology(order: int, propagators: List[feynml.interface.formcalc.propagator.Propagator])[source]
Bases:
object- __init__(order: int, propagators: List[Propagator]) None
Methods
__init__(order, propagators)from_str(topology)Example
n()Example
re()to_feynml(insertions)Attributes
orderpropagators- classmethod from_str(topology: str)[source]
Example
>>> str(Topology.from_str('Topology[1][ Propagator[Incoming][Vertex[1][1], Vertex[3][5], Field[1]], Propagator[Incoming][Vertex[1][2], Vertex[3][6], Field[2]], Propagator[Outgoing][Vertex[1][3], Vertex[3][6], Field[3]], Propagator[Outgoing][Vertex[1][4], Vertex[3][5], Field[4]], Propagator[Internal][Vertex[3][5], Vertex[3][6], Field[5]]]')) 'Topology[1][Propagator[Incoming][Vertex[1][1], Vertex[3][5], Field[1]], Propagator[Incoming][Vertex[1][2], Vertex[3][6], Field[2]], Propagator[Outgoing][Vertex[1][3], Vertex[3][6], Field[3]], Propagator[Outgoing][Vertex[1][4], Vertex[3][5], Field[4]], Propagator[Internal][Vertex[3][5], Vertex[3][6], Field[5]]]'