Skip to content

Commit

Permalink
Removed comment for unnecessary backward edges below.
Browse files Browse the repository at this point in the history
  • Loading branch information
soerendomroes committed Aug 16, 2024
1 parent e4b1d04 commit cf3911e
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,16 +250,6 @@ public int compare(final LPort originalP1, final LPort originalP2) {

// If both ports have the same target nodes, make sure that the backward edge is below the normal edge.
if (p1TargetNode != null && p1TargetNode.equals(p2TargetNode)) {
// // Backward edges below
// if (p1.getOutgoingEdges().get(0).getProperty(InternalProperties.REVERSED)
// && !p2.getOutgoingEdges().get(0).getProperty(InternalProperties.REVERSED)) {
// updateBiggerAndSmallerAssociations(p1, p2);
// return 1;
// } else if (!p1.getOutgoingEdges().get(0).getProperty(InternalProperties.REVERSED)
// && p2.getOutgoingEdges().get(0).getProperty(InternalProperties.REVERSED)) {
// updateBiggerAndSmallerAssociations(p2, p1);
// return -1;
// }
// If both edges are reversed or not reversed, just use their model order.
if (p1Order > p2Order) {
updateBiggerAndSmallerAssociations(p1, p2);
Expand Down

0 comments on commit cf3911e

Please sign in to comment.