Skip to content

Commit

Permalink
Fixes: layered: Hierarchycal: Orientation of hierarchical edge in/out…
Browse files Browse the repository at this point in the history
… degree. (#810)

* Fixed hierarchical edge orientation for way outside case.

Signed-off-by: Soeren Domroes <sdo@informatik.uni-kiel.de>
  • Loading branch information
soerendomroes committed Mar 23, 2022
1 parent 2145eed commit 453429f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -856,7 +856,7 @@ private int calculateNetFlow(final LPort port) {
outputPortVote++;
} else if (isSelfLoop && !isInsideSelfLoop) {
inputPortVote++;
} else if (sourceNode.getGraph().getParentNode() == node) {
} else if (sourceNode.getGraph().getParentNode() == node) {
outputPortVote++;
} else {
inputPortVote++;
Expand Down Expand Up @@ -919,7 +919,7 @@ private LNode createExternalPortDummy(final LGraph graph, final LNode parentNode
createExternalPortProperties(graph),
parentNode.getProperty(LayeredOptions.PORT_CONSTRAINTS),
portSide,
calculateNetFlow(outsidePort),
portType == PortType.INPUT ? -1 : 1,
null,
new KVector(),
new KVector(0, 0), // A dummy port is not considered to have a size (#766)
Expand Down

0 comments on commit 453429f

Please sign in to comment.