Computes node coordinates using the Fruchterman-Reingold force-directed
layout algorithm. Fast spring-electrical model that treats edges as springs
and nodes as electrically charged particles. Produces organic, symmetric
layouts with uniform edge lengths. Works with all edge types and produces
deterministic results.
A data.frame with columns name, x, and y containing node
names and their coordinates.
Arguments
x
A caugi object.
packing_ratio
Aspect ratio for packing disconnected components
(width/height). Default is the golden ratio (1.618) which works well with
widescreen displays. Use 1.0 for square grid, 2.0 for wider layouts,
0.5 for taller layouts, Inf for single row, or 0.0 for single column.