Shape-Faithful Graph Drawings

Amyra Meidiana, Seok-Hee Hong, Peter Eades · DOI

Abstract

Traditional graph drawing algorithms prioritize aesthetic metrics such as minimizing edge crossings and maintaining uniform edge lengths. However, these metrics often fail to accurately represent the underlying structural "shape" of complex graphs. This paper introduces the first systematic study of shape-faithful graph drawings, proposing two novel algorithms—ShFR and ShSM—designed to ensure that the geometric proximity of nodes in a 2D plane reflects their actual connectivity in the graph. Experimental results demonstrate that these methods significantly improve faithfulness over standard layouts, with ShSM achieving up to a 35% average improvement.

Introduction

In graph drawing, "readability" has long been the primary objective. While reducing crossings and maximizing symmetry helps human interpretation, it can lead to misleading visualizations where nodes placed in close proximity are not actually connected in the data. This discrepancy creates a false representation of the graph's topology.

A drawing is considered "shape-faithful" if its proximity graph—a graph where edges exist between nodes that are "close enough" according to a specific geometric criterion—matches the original graph. While specific classes of graphs are known to be perfectly "proximity drawable," most real-world datasets do not fall into these categories. This research addresses the challenge of making general graph drawings more honest to their structural shape by penalizing "intruder" vertices that occupy the forbidden zones between connected neighbors.

Methodology

The authors propose two algorithms that modify established layout techniques to incorporate proximity-based constraints:

1. ShFR (Shape-Faithful Fruchterman-Reingold)

Building on the classic force-directed Fruchterman-Reingold layout, ShFR identifies "intruder" vertices—nodes that have entered the proximity region (or forbidden zone) between two connected neighbors. To correct this, the algorithm introduces two new forces:

  • Proximity Repulsion: Pushes the intruder out of the forbidden zone.
  • Proximity Attraction: Pulls connected neighbors closer together to shrink the forbidden zone and reduce the likelihood of intrusion.

2. ShSM (Shape-Faithful Stress Majorization)

ShSM adapts stress-based layouts, which typically minimize the difference between Euclidean distances and graph-theoretic distances. ShSM introduces a "proximity stress" component that penalizes the presence of intruders and rewards the geometric closeness of actual neighbors.

Both algorithms maintain a computational complexity of $O(n^2)$, ensuring they remain as scalable as the standard versions they improve upon.

Experimental Setup

The researchers evaluated ShFR and ShSM against a diverse set of graph types:

  • Proximity Drawable Graphs: Synthetic trees and outerplanar graphs where high faithfulness is theoretically achievable.
  • Mesh Graphs: Regular grids from the SuiteSparse Matrix collection.
  • Scale-free Graphs: Synthetic networks mimicking real-world power-law distributions.
  • Real-world Benchmarks: 11 datasets, including netscience, us_powergrid, and yeastppi_lcc, with up to 6,000 vertices and 15,000 edges.

Key Insights and Results

Quantitative Performance

The proposed algorithms showed substantial improvements in shape-faithfulness metrics (such as Gabriel Graph and Relative Neighborhood Graph faithfulness):

  • ShFR achieved a 12% average improvement over the standard Fruchterman-Reingold algorithm.
  • ShSM was the most effective, yielding a 35% average improvement over standard Stress Majorization.
  • On scale-free graphs, ShSM improved the Gabriel Graph metric by 70%, demonstrating its efficacy on complex, non-uniform structures.

Structural Observations

  • The Difficulty of Trees: While mesh graphs are easily handled by stress-based layouts, trees are surprisingly difficult to draw shape-faithfully. Their sparse nature creates large amounts of "empty space" where intruders can easily wander into forbidden zones.
  • The "Collapse" Strategy: The study noted that existing tools like tsNET perform well on large graphs by "collapsing" peripheral subgraphs. This clustering keeps non-adjacent vertices far apart, naturally increasing faithfulness.
  • Proximity Region Trade-offs: Optimizing for the Relative Neighborhood Graph (RNG) is more difficult than the Gabriel Graph (GG) because the RNG defines larger forbidden zones, increasing the probability of node intrusion.

Conclusion and Future Work

ShFR and ShSM represent a significant step toward more structurally honest graph visualizations, successfully "untangling" dense regions and opening up collapsed faces in complex drawings. However, a fundamental trade-off exists between faithfulness and readability. Highly faithful drawings can sometimes appear crowded as nodes are pulled closer to satisfy proximity constraints.

Future research will focus on integrating proximity forces into multi-level and dimensionality reduction-based layouts, balancing structural honesty with aesthetic clarity, and scaling these techniques to graphs exceeding 6,000 nodes.

Summary updated

BibTeX
@inproceedings{meidiana2022shape,
  author = {Amyra Meidiana and Seok-Hee Hong and Peter Eades},
  title = {{Shape-Faithful Graph Drawings}},
  booktitle = {GD},
  year = {2022},
  doi = {10.1007/978-3-031-22203-0\_8},
}
Figure