Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions sources/grcc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7197,12 +7197,33 @@ Bool EGraph::optQGrafM(Options *opt)
extk = 1;
}
if ( momj == momk) {
// We have a pair of lines with equal momenta. Determine if they have a
// common two-point vertex. We want to keep this type of "insertion" when
// in GRCC_QGRAF_OPT_NOSIGMA mode.
int commonNode = -1;
bool common2PtVtx = False;
if (econn->cedges[j].nodes[0] == econn->cedges[k].nodes[0])
commonNode = econn->cedges[j].nodes[0];
else if (econn->cedges[j].nodes[0] == econn->cedges[k].nodes[1])
commonNode = econn->cedges[j].nodes[0];
else if (econn->cedges[j].nodes[1] == econn->cedges[k].nodes[0])
commonNode = econn->cedges[j].nodes[1];
else if (econn->cedges[j].nodes[1] == econn->cedges[k].nodes[1])
commonNode = econn->cedges[j].nodes[1];
if (commonNode != -1) {
if (nodes[commonNode]->deg == 2) {
common2PtVtx = True;
}
}

if (nExtern == 2) {
if (extj + extk != 2) {
if (extj + extk != 2 && common2PtVtx == False) {
ok = False;
}
} else {
ok = False;
if (common2PtVtx == False) {
ok = False;
}
}
}
}
Expand Down
Loading