Ghidra is a software reverse engineering (SRE) framework
Merge remote-tracking branch 'origin/GP-769-dragonmacher-fg-edge-weight-option--SQUASHED' (Closes #1106)
ghidra10ab0bb6ea3d5
diff --cc Ghidra/Features/FunctionGraphDecompilerExtension/src/main/java/ghidra/app/plugin/core/functiongraph/graph/layout/DecompilerNestedLayout.javaindex e3a40d8ff3,365444132e..660257ed51--- a/Ghidra/Features/FunctionGraphDecompilerExtension/src/main/java/ghidra/app/plugin/core/functiongraph/graph/layout/DecompilerNestedLayout.java+++ b/Ghidra/Features/FunctionGraphDecompilerExtension/src/main/java/ghidra/app/plugin/core/functiongraph/graph/layout/DecompilerNestedLayout.java@@@ -409,9 -347,11 +409,16 @@@ public class DecompilerNestedLayout ext}int distanceSpacing = delta * multiplier;+ // Condensing is when the graph will pull nodes closer together on the x axis to+ // reduce whitespace and make the entire graph easier to see. In this case, update+ // the offset to avoid running into the moved vertices.+++ // Condensing Note: we have guilty knowledge that our parent class my condense the+ // vertices and edges towards the center of the graph after we calculate positions.+ // To prevent the edges from moving to far behind the vertices, we will compensate a+ // bit for that effect using this offset value. The getEdgeOffset() method is+ // updated for the condense factor.++int exaggerationFactor = 1;if (isCondensedLayout()) {exaggerationFactor = 2; // determined by trial-and-error; can be made into an option@@@ -672,9 -605,11 +679,16 @@@int padding = VERTEX_TO_EDGE_AVOIDANCE_PADDING;int distanceSpacing = padding + delta; // adding the delta makes overlap less likely+ // Condensing is when the graph will pull nodes closer together on the x axis to+ // reduce whitespace and make the entire graph easier to see. In this case, update+ // the offset to avoid running into the moved vertices.+++ // Condensing Note: we have guilty knowledge that our parent class my condense the+ // vertices and edges towards the center of the graph after we calculate positions.+ // To prevent the edges from moving to far behind the vertices, we will compensate a+ // bit for that effect using this offset value. The getEdgeOffset() method is+ // updated for the condense factor.++int vertexToEdgeOffset = otherVertex.getEdgeOffset();int exaggerationFactor = 1;if (isCondensedLayout()) {