Package madgraph :: Package core :: Module diagram_generation :: Class DiagramTagChainLink
[hide private]
[frames] | no frames]

Class DiagramTagChainLink

source code

object --+
         |
        DiagramTagChainLink

Chain link for a DiagramTag. A link is a tuple + vertex id + depth, with a comparison operator defined

Instance Methods [hide private]
 
__init__(self, objects, vertex_id=None)
Initialize, either with a tuple of DiagramTagChainLinks and a vertex_id (defined by DiagramTag.vertex_id_from_vertex), or with an external leg object (end link) defined by DiagramTag.link_from_leg
source code
 
get_external_numbers(self)
Get the permutation of external numbers (assumed to be the second entry in the end link tuples)
source code
 
__lt__(self, other)
Compare self with other in the order:
source code
 
__gt__(self, other) source code
 
__eq__(self, other)
For end link, consider equal if self.links[0][0] == other.links[0][0], i.e., ignore the leg number (in links[0][1]).
source code
 
__ne__(self, other) source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
str(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, objects, vertex_id=None)
(Constructor)

source code 

Initialize, either with a tuple of DiagramTagChainLinks and a vertex_id (defined by DiagramTag.vertex_id_from_vertex), or with an external leg object (end link) defined by DiagramTag.link_from_leg

Overrides: object.__init__

__lt__(self, other)
(Less-than operator)

source code 

Compare self with other in the order:

  1. depth 2. len(links) 3. vertex id 4. measure of links

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

str(x)

Overrides: object.__repr__
(inherited documentation)