From 589b91ca44d86fb0d4469433b58a7cde0804ec7c Mon Sep 17 00:00:00 2001 From: Jacan Chaplais Date: Mon, 14 Aug 2023 13:52:26 +0100 Subject: [PATCH] improved clarity about sign conventions #16 --- showerpipe/generator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/showerpipe/generator.py b/showerpipe/generator.py index 651fa35..fbd35ab 100644 --- a/showerpipe/generator.py +++ b/showerpipe/generator.py @@ -121,12 +121,12 @@ def edges(self) -> base.AnyVector: # If a particle has no children, it is a leaf of the DAG, and an # arbitrary pseudo-particle id is added as the child, with a negative # sign. The negative sign prevents overlap with the positive ids of the - # other particles. It also provides a way of implementing the - # convention that leaf particles have opposite signs to all others. + # other particles. It also provides a way of propagating the opposite + # sign from the internal vertices to the leaf vertex ids. # # If a particle has no parents, it is the root of the DAG, and is - # labeled with an id of 0. This, too, can be propagated to identify the - # root node in the DAG in the final result. + # labeled with an id of 0. This, too, can be propagated to the root + # vertex id, to identify it uniquely in the COO representation. # # These vertices are then numbered and iterated over. Mappings between # the particle ids (accessed as the incoming and outgoing edge ids of