A New Force-Directed Graph Drawing Method Based on Edge-Edge Repulsion
Chun-Cheng Lin and Hsu-Chen Yen
Department of Electrical Engineering, National Taiwan University, Taiwan, R.O.C.
Outline
Force-directed graph drawing method
Initial (random) layout
Final (nice) layout
Iteration 1:
Iteration 2:
Iteration 3:
Iteration 4:
Iteration 5:
Iteration 6:
Iteration 7:
Iteration 8:
Iteration 9:
Aesthetical properties
( This slide comes from Yehuda Harel )
Motivations (1/2)
edge
vertex
edge
vertex
X ( vertex-vertex repulsion )
1.1. Eades, 1984
1.2. Fruchterman & Reingold,
1991
X ( vertex-edge repulsion )
2.1. Davidson & Harel, 1996
2.2. Bertault, 1999
the same
( edge-vertex repulsion )
edge-edge repulsion
1.1. Vertex-Vertex Repulsion�( Eades, 1984 )
→ repulsive force
→ attractive force
let go!
1.2. Vertex-Vertex Repulsion�( Fruchterman & Reingold, 1991)
⇒ Modified formula
log ( x )
x
C2
2.1. Vertex-Edge Repulsion�( Davidson & Harel, 1996 )
(Kirkpatrick, Gelatt, and Vecchi, 1983)
Penalize the vertex and edge that are
too close to each other.
( vertex-edge repulsion )
Penalize the distance between two vertices.
( vertex-vertex repulsion )
2.2. Vertex-Edge Repulsion�( Bertault, 1999 )
#(crossings) = 5
Motivations (2/2)
Edge-edge overlapping
vertex-edge overlapping
initial
final
Model of Edge-Edge Repulsion
In each iteration:
compute spring forces as Eades’, i.e.
compute repulsive forces according to our model
acting on the vertex
C
A
B
Every edge is replaced by
a changed spring.
Intuition
C
A
B
f1
f2 = - f1
f11
f12
θ
Potential Field Method
( Chuang and Ahuja, 1998)
++
++++
+
+++++
++
+
+ + +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
S
G
C
A
B
General formula of the repulsive force
between two charged edges
Reasons to simplify the repulsive force formula
Simulation on magnitude of force
Force magnitude vs. edge length
Force magnitude vs. the included angle θ
Simulation on orientation of force
the included angle α
the included angle θ
Simplified force formula
Experimental Results (i)
Experimental Results (ii) Hypercubes
Because the model of edge-edge repulsion allows at least two
vertices coinciding (although such drawings are improper),
our approach may produce drawings with more symmetries.
Statistics
Local minimal problem
( The figures shown in this slide comes from Yehuda Harel )
Conclusion
The End
Thank you for your attention.