InfGraph Draw Automatic Graph Drawing Lecture 4 STRESS

![D&H F&R K&K [Produced with OGDF and KLigh. D] 3 D&H F&R K&K [Produced with OGDF and KLigh. D] 3](https://slidetodoc.com/presentation_image_h/180015e4f01e67ce08b934df1aba9b30/image-2.jpg)








![K&K weighted edges [GKN 04] uniform edges 13 K&K weighted edges [GKN 04] uniform edges 13](https://slidetodoc.com/presentation_image_h/180015e4f01e67ce08b934df1aba9b30/image-11.jpg)
![Diagram-Specific Requirements Family Tree Unix Tree [Wikimedia Commons] [cola. js] 14 Diagram-Specific Requirements Family Tree Unix Tree [Wikimedia Commons] [cola. js] 14](https://slidetodoc.com/presentation_image_h/180015e4f01e67ce08b934df1aba9b30/image-12.jpg)
![Dwyer et al. [DK 05] T. Dwyer and Y. Koren, Dig-Co. La: directed graph Dwyer et al. [DK 05] T. Dwyer and Y. Koren, Dig-Co. La: directed graph](https://slidetodoc.com/presentation_image_h/180015e4f01e67ce08b934df1aba9b30/image-13.jpg)

![[DKM 06] unconstrained, stress: 39, 954 downward edges: stress 49, 035 bands: stress 74, [DKM 06] unconstrained, stress: 39, 954 downward edges: stress 49, 035 bands: stress 74,](https://slidetodoc.com/presentation_image_h/180015e4f01e67ce08b934df1aba9b30/image-15.jpg)


![Grid-like Node Alignment [SDMW 13] S. Kieffer, T. Dwyer, K. Marriott, and M. Wybrow, Grid-like Node Alignment [SDMW 13] S. Kieffer, T. Dwyer, K. Marriott, and M. Wybrow,](https://slidetodoc.com/presentation_image_h/180015e4f01e67ce08b934df1aba9b30/image-18.jpg)



- Slides: 21
Inf-Graph. Draw: Automatic Graph Drawing Lecture 4 STRESS Reinhard von Hanxleden rvh@informatik. uni-kiel. de This lecture is based in part on material kindly provided by Ulf Rüegg
D&H F&R K&K [Produced with OGDF and KLigh. D] 3
Multidimensional Scaling (MDS) A means of visualizing the level of similarity of items (e. g. , cities, members of the House), in particular to display information contained in a distance matrix. [Wikimedia Commons] [CC-BY Andrewman 327 Wikipedia MDS] 5
Metric used in MDS: Stress Xi: coordinate of node vi dij: graph-theoretic distance wij: normalization constant, typically choose dij-2 [GKN 04] E. Gansner, Y. Koren, and S. North, Graph drawing by stress majorization, Proc. 12 th Int. Symp. Graph Drawing (GD’ 04), LNCS 3383, Springer Verlag (2004) 239– 250. 6
Stress Majorization Given layout X(t), compute layout X(t + 1) s. t. stress(X(t + 1)) < stress(X(t)) Terminate process when [ stress(X(t)) – stress(X(t+1)) ] / stress(X(t)) < ε Typically, ε ∼ 10 -4 Advantages over Newton-Raphson etc. : • Guaranteed monotonic decrease of energy • Robustness against local minima • Shorter running time 7
Stress Majorization Consider axis a X(t)i (a) : a-coordinate of node i at iteration t x = X(t)(a) : a-coordinates of nodes at iteration t Majorization process determines new coordinates x = X(t + 1)(a) with where inv(0) = 0, and inv(x) = 1/x if x ≠ 0 8
Stress Majorization Intuitively, on current axis a, node j located at xj strives to place node i at 9
Stress Majorization Gansner et al. report: • • faster better convergence better layout quality more flexibility replace K&K optimization method [GKN 04] 10
Stress in ELK: https: //github. com/eclipse/elk/blob/master/plugins/o rg. eclipse. elk. alg. force/src/org/eclipse/elk/alg/force/ stress/Stress. Majorization. java Watch it work: https: //rtsys. informatik. unikiel. de/elklive/elkgraph. html? compressed. Content=IYGw 5 g 9 g. Tglg. Lg. Cw. LYC 4 AEBn. OUCm. GMBQA 9 EQCZ 4 y 6 k. Cip. YOAMjg. HZi. Lo. BMADFwc. QFQFQk. WIl. Ro. AZt. ADGOAkgjk. Q 6 AGIAl. AKo. Bh. ABIAVamo. Cy. AQQBy Af. TXUAkm. YDi. Ae. QYARAl. Kiy. Ad. PBx. Rgc. DAQz. Bjo. AIw 8 v. Bg. ADs. DSMKxez. Io 4 Zinh. AKy 8 ER 8 BMnka. My 8 BTh. FYfkp. RRy. Vhcw. Az. LVlz. AAs. TUUZ 7 cw. Ab. F 0 A 7 F 0 AHF 0 An. F 0 R 4 x. Wl 5 TXTz. GGNc 2 Ft. S 51 Lv. Us. DS 8 NLY 3 Pc. XRx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eoyd. JFak. UZz. SRJp. FE 5 TJBRXGCxz. IZCtmc. RRLFga 6 MUdx. Mxslp. ET 06 u. WGef. Crz+V 7 NNHkij. Ka. Fz 0 d. Fbc. DMSRXg. Sku Bmbj-EEUj. B 2 Lxk. Mj. E 2 Lj. Atesz. CFH+NMZI 4 G 95 arbi. MXv. ZY+Mc 4 FWWAFZhc. FUm. U 2 YSkq 8 I 1 yi. SIOEAA or https: //tinyurl. com/elk-stress 11
Individual Edge Lengths Weigh edges by neighborhood size Ni = { j | { i, j } ϵ E }: uniform edges [GKN 04] weighted edges [GKN 04] 12
K&K weighted edges [GKN 04] uniform edges 13
Diagram-Specific Requirements Family Tree Unix Tree [Wikimedia Commons] [cola. js] 14
Dwyer et al. [DK 05] T. Dwyer and Y. Koren, Dig-Co. La: directed graph layout through constrained energy minimization, IEEE Symposium on Information Visualization, pp. 65– 72, 2005. [DKM 05] T. Dwyer, Y. Koren, and K. Marriott, Stress majorization with orthogonal ordering constraints, Graph Drawing, pp. 141– 152, 2005. [DKM 06] T. Dwyer, Y. Koren, and K. Marriott, “IPSep-Co. La: An incremental procedure for separation constraint layout of graphs, ” IEEE Transactions on Visualization and Computer Graphics, vol. 12, no. 5, pp. 821– 8, 2006. [DMW 09] T. Dwyer, K. Marriott, and M. Wybrow, Topology preserving constrained graph layout, Graph Drawing, pp. 230 -241, 2009. 15
Separation Constraints Dwyer et al. extend stress majorization with linear separation constraints: • u, v represent node positions and d is a constant • x/y dimensions are handled separately 16
[DKM 06] unconstrained, stress: 39, 954 downward edges: stress 49, 035 bands: stress 74, 894 “leveled“, stress: N/A 17
P-Stress attractive repulsive Intuition • Nodes repulse each other up to a certain distance • Edges contract until (individual) ideal length is reached 18
Variety of Layout Constraints • Directed edges • Alignment • Bands • Fixed positions • Containment • Orthogonal ordering • Non-overlap of nodes and/or clusters 19
Grid-like Node Alignment [SDMW 13] S. Kieffer, T. Dwyer, K. Marriott, and M. Wybrow, Incremental grid-like layout using soft and hard constraints, Graph Drawing, 2013. 20
cola. js 21
Dataflow Diagrams ORTHOGONAL EDGES PORTS HIERARCHICAL PORTS COMPOUND NODES ATOMIC NODES 22
Summary • Multidemensional scaling (MDS): visualizes “similarity” of data, trying to preserve distances in mapping of data to N-d space • Stress majorization • Well-known technique in MDS since 1980 s • Better results, better convergence than e. g. Newton. Raphson • As with force-directed, can have numerous variations 23