no strict criteria for aesthetics
- minimal edge crossing
- evenly distributed vertices
- depiction of graph symmetry
spectral method
high-dimensional embedding method
drawback
- local minimum (improved by multilevel approach and adaptive cooling scheme)
- computational and memory complexity
minimize the system energy
- springs between neighboring (only between neighboring vertices)
- repulsive electrical forces (proportional to the inverse of the physical distance)
$\begin{aligned} f_{r}(i, j) &=-C K^{2} /\left|x_{i}-x_{j}\right| \ f_{a}(i, j) &=\left|x_{i}-x_{j}\right|^{2} / K \end{aligned}$
Theorem 1. Let $x^{}=\left{x_{i}^{} | i \in V\right}$ minimizes $\text { Energy }{\text { se }}(x, K, C)$, then $\mathrm{sx}^{*}$minimizes Energy ${\text { se }}\left(x, K^{\prime}, C^{\prime}\right)$, where
we fix
- reason: repulsive force decays as the distance increases
-
$f_{r}(i, j)=-C K^{1+p} /\left|x_{i}-x_{j}\right|^{p}$ ,$p=2$ works well
spring attached between any two pairs of vertices
suffers from weak repulsive forces
Energy ${s}(x)=\sum{i \neq j, i, j \in V}\left(\left|x_{i}-x_{j}\right|-d(i, j)\right)^{2}$
-
Increase
step
tostep/t
if the energy reduced more than 5 times in a row -
only reduce the
step
length if energy increases
reference
efficient, high-quality force-directed graph drawings
time complexity is reduced from
Barnes–Hut opening criterion: Each square is checked and
recursively opened until the inequality is satisfied
$$
\frac{d_{S}}{\left|x_{i}-x_{S}\right|} \leq \theta
$$
where
CPU time measurement: max_tree _level
the weight of a vertex/edge is the sum of weights of vertices/edges it replaces
- maximal matching
- heavy-edge matching
coarsen the graph until
result in a coarser graph with less than 50% vertices
only calculating the distance of two vertices u and v and their attractive/repulsive forces, if
cutoff radius for repulsive forces
Yifan Hu, "Efficient, High-Quality Force-Directed Graph Drawing," The Mathematica Journal
C. Walshaw, “A Multilevel Algorithm for Force-Directed Graph Drawing,” Journal of Graph Algorithms and Applications, 7(3), 2003 pp. 253–285.