a sparse stress model mark ortmann mirza klimenta ulrik
play

A Sparse Stress Model Mark Ortmann Mirza Klimenta Ulrik Brandes - PowerPoint PPT Presentation

A Sparse Stress Model Mark Ortmann Mirza Klimenta Ulrik Brandes Department of Computer & Information Science University of Konstanz full stress (340.10s) our approach (2.56s) best related (3.60s) 24th Intl. Symp. Graph Drawing 1921


  1. A Sparse Stress Model Mark Ortmann Mirza Klimenta Ulrik Brandes Department of Computer & Information Science University of Konstanz full stress (340.10s) our approach (2.56s) best related (3.60s) 24th Intl. Symp. Graph Drawing 19–21 September 2016, Athens

  2. Full Stress Model Goal: ◮ finding layout x = ( R 2 ) V minimizing: � w ij ( || x i − x j || − d ij ) 2 s ( x ) = i , j ∈ ( V 2 ) with ◮ d ij := shortest path distances between i and j ◮ w ij := 1 / d 2 ij

  3. Full Stress Model Goal: ◮ finding layout x = ( R 2 ) V minimizing: � w ij ( || x i − x j || − d ij ) 2 s ( x ) = i , j ∈ ( V 2 ) � � w ij ( || x i − x j || − d ij ) 2 w ij ( || x i − x j || − d ij ) 2 = + i , j ∈ E i , j �∈ E � �� � � �� � 1 st term 2 nd term with ◮ d ij := shortest path distances between i and j ◮ w ij := 1 / d 2 ij

  4. Full Stress Model Goal: ◮ finding layout x = ( R 2 ) V minimizing: � w ij ( || x i − x j || − d ij ) 2 s ( x ) = i , j ∈ ( V 2 ) � � w ij ( || x i − x j || − d ij ) 2 w ij ( || x i − x j || − d ij ) 2 = + i , j ∈ E i , j �∈ E � �� � � �� � 1 st term 2 nd term with ◮ d ij := shortest path distances between i and j ◮ w ij := 1 / d 2 ij Complexity due to 2 nd term: ◮ preprocessing: O ( n ( m + n log n )) ◮ time & space: O ( n 2 )

  5. How to deal with the 2 nd Term Related Sparse Stress Models: ◮ ignore: ◮ GRIP (Gajer, Goodrich and Kobourov, GD’00 , 2001) ◮ 1-stress (Brandes and Pich, GD’08 , 2009) ◮ replace: ◮ maxent (Gansner, Hu and North, TVCG , 2013) ◮ COAST (Gansner, Hu and Krishnan, GD’13 , 2013) ◮ approximate shortest path matrix & set w ij = 1 / d ij : ◮ MARS (Khoury, Hu, Krishnan and Scheidegger, CGF , 2012) our approach: ◮ approximate by term aggregation

  6. Aggregation of Terms is an old Hat (or was it Hut) Aggretation of terms via Barnes & Hut: (Barnes and Hut, Nature , 1986) 1. construct partition of V for each i ∈ V 2. for each partition p ∈ P ( i ) determine centroid 3. aggregation: repulsive forces only w.r.t. centroids Result: ◮ repulsive forces: O ( n log n ) instead of O ( n 2 ) computations

  7. Aggregation of Terms is an old Hat (or was it Hut) Aggretation of terms via Barnes & Hut: (Barnes and Hut, Nature , 1986) 1. construct partition of V for each i ∈ V 2. for each partition p ∈ P ( i ) determine centroid 3. aggregation: repulsive forces only w.r.t. centroids Result: ◮ repulsive forces: O ( n log n ) instead of O ( n 2 ) computations Problem: ◮ centroids artificial nodes ⇒ no shortest-path distance

  8. A Sparse Stress Model Solution: ◮ select k pivots P ⊆ V ◮ assign each pivot p a partition R ( p ) ⊆ V with p ∈ R ( p ) and R ( p ) ∩ R ( p ′ ) = ∅

  9. A Sparse Stress Model Solution: ◮ select k pivots P ⊆ V ◮ assign each pivot p a partition R ( p ) ⊆ V with p ∈ R ( p ) and R ( p ) ∩ R ( p ′ ) = ∅ Our Sparse Stress Model: � � � s ′ ( x ) = w ij ( || x i − x j ||− d ij ) 2 + w ′ ip ( || x i − x p ||− d ip ) 2 , i ∈ V { i , j }∈ E p ∈P\ N ( i ) with adapted weights w ′ ij

  10. A Sparse Stress Model - Partitioning Construction Iterative stress minimization (Gansner, Koren and North, GD’04 , 2004) : � j � = i w ij v ( i , j ) d ij ( x α i − x α j ) x α i = with v ( i , j ) = x α j + � j � = i w ij || x i − x j || d ij x j v ( i , j ) x i

  11. A Sparse Stress Model - Partitioning Construction Iterative stress minimization (Gansner, Koren and North, GD’04 , 2004) : � j � = i w ij v ( i , j ) d ij ( x α i − x α j ) x α i = with v ( i , j ) = x α j + � j � = i w ij || x i − x j || Each pivot aggregates terms R ( p ) : d ij � j ∈R ( p ) w ij v ( i , j ) x j v ( i , p ) ≈ � j � = i w ij v ( i , j ) x i Requirement: ◮ d ip similar to d ij with j ∈ R ( p ) ◮ x j well distributed in close proximity around x p Solution: ◮ assign i ∈ V to partition of closest pivot

  12. A Sparse Stress Model - Weight Adaption Ideal: ip = � ◮ w ′ j ∈R ( p ) w ij Problem: ◮ w ij ’s unknown since w ij = 1 / d 2 ij Solution set w ′ ip = s / d 2 ip : ◮ s number j ∈ R ( p ) at least as close to p as to i ◮ s = |{ j ∈ R ( p ) : d jp ≤ d ip / 2 }|

  13. A Sparse Stress Model - Weight Adaption Ideal: ip = � ◮ w ′ j ∈R ( p ) w ij Problem: ◮ w ij ’s unknown since w ij = 1 / d 2 ij Solution set w ′ ip = s / d 2 ip : ◮ s number j ∈ R ( p ) at least as close to p as to i ◮ s = |{ j ∈ R ( p ) : d jp ≤ d ip / 2 }| Complexity of our Sparse Stress Model: ◮ preprocessing: O ( k ( m + n log n )) ◮ time & space: O ( kn + m )

  14. Evaluation - Setup Data: ◮ 13 graphs 1 K ≤ n ≤ 21 K (Davis and Hu, Sparse Matrix Collection ) ◮ 2 bipartite, 2 weighted graphs Layout algorithms: ◮ our approach with k ∈ { 50 , 100 , 200 } pivots ◮ maxent, GRIP , MARS, 1-stress and PivotMDS Reported results our approach: ◮ median stress layout of 25 repetitions ◮ P sampled via k-means on subset of shortest-path distance matrix

  15. Evaluation - Measures & Results ◮ Stress (optimally scaled) ◮ Time ◮ Procrustes Analysis ◮ Gabriel Graph Neighborhood preservation ◮ Convex Hull Classification

  16. Evaluation - Measures & Results ◮ Stress (optimally scaled) ◮ Time ◮ Procrustes Analysis ◮ Gabriel Graph Neighborhood preservation ◮ Convex Hull Classification Results show that our method yields: ◮ lower stress ◮ higher similarity ◮ better ◮ lower runtime ◮ better preservation classification

  17. Results graph full stress sparse 200 sparse 100 sparse 50 maxent MARS 200 MARS 100 GRIP 1-stress PivotMDS dwt1005 3elt LeHavre qh882 btree

  18. Results graph full stress sparse 200 sparse 100 sparse 50 maxent MARS 200 MARS 100 GRIP 1-stress PivotMDS dwt1005 3elt LeHavre qh882 btree full stress sparse 200 maxent GRIP

  19. Conclusion ◮ 2 nd term makes full stress model too costly ◮ Sparse Stress Model: aggregation of terms ◮ preprocessing: O ( k ( m + n log n )) ◮ time & space: O ( kn + m ) ◮ proper pivot sampling and weight adaption allows ◮ better approximation ◮ less time full stress (340.10s) our approach (2.56s) best related (3.60s)

  20. Time Complexity ◮ Full Stress: O ( n 2 ) ◮ 1-stress: O ( m ) ◮ GRIP: O ( nk 2 ) with k = log max { d ij : i , j ∈ V } ◮ maxent: O ( m + n log n ) ◮ MARS: O ( kn + n log n + m ) ◮ PivotMDS: O ( nk ) ◮ our approach: O ( nk + m )

  21. Evaluation - Data graph n m δ ( G ) ∆( G ) D ( G ) { deg ( i ) } { d ij } dwt1005 1005 3808 3 26 34 1138bus 1138 1458 1 17 31 plat1919 1919 15240 2 18 43 3elt 4740 13722 3 9 65 USpowerGrid 4941 6594 1 19 46 7920 11880 ∗∗ commanche 3 3 438.00 11730 15133 ∗∗ LeHavre 1 7 33800.67 pesa 11738 33914 2 9 208 bodyy5 18589 55346 2 8 132 finance256 20657 71866 1 54 55 1023 ∗ btree (binary tree) 1022 1 3 18 1764 ∗ qh882 3354 1 14 32 2526 ∗ lpship04l 6380 1 84 13

  22. Sampling sampling strategy 0.024 ● max/min euclidean normalized stress 0.0275 ● ● random commanche ● 0.023 MIS filtration ● ● ● ● ● pesa ● ● ● ● ● max/min sp ● ● 0.0250 ● ● ● ● ● ● k−means layout ● ● 0.022 ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● k−means + max/min sp ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● max/min random sp ● ● ● ● ● 0.021 ● ● ● ● ● ● ● ● ● ● ● ● ● 0.0225 ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● k−means sp ● ● ● ● ● ● ● ● ● ● ● ● ● ● 50 100 150 200 50 100 150 200 number of pivots 0.8 0.04 sampling strategy ● max/min euclidean ● ● Procrustes statistic 0.6 0.03 ● MIS filtration ● ● ● USpowerGrid ● random ● ● ● btree ● ● ● ● ● k−means layout ● ● ● ● ● 0.4 ● ● ● 0.02 ● ● ● ● ● ● ● ● ● ● ● k−means + max/min sp ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● max/min random sp ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● max/min sp ● ● ● ● 0.2 ● ● ● 0.01 ● ● ● ● ● ● ● ● ● ● ● ● ● k−means sp ● ● ● ● ● ● ● ● ● ● 50 100 150 200 50 100 150 200 number of pivots

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend