feynml.util.vertex_id_wrap

feynml.util.vertex_id_wrap(idd)[source]

Wrap a vertex id in the format expected by feynml.

Parameters:

idd – The id of the vertex.

Returns:

The wrapped id.

Examples

>>> vertex_id_wrap(1)
'Vertex1'
>>> vertex_id_wrap(-1)
'Vertexm1'