| cgv_layout_fr_bh | R Documentation |
Same energy model as cgv_layout_fr but with O(n log n) repulsion
approximated through an octree. Suitable for large graphs (10^4+ nodes).
cgv_layout_fr_bh(
n_nodes,
edges,
n_iter = 200L,
ideal_len = NULL,
theta = 1,
cool = 0.98,
min_dist = 0.01,
seed = NULL,
init = NULL,
normalize = TRUE
)
n_nodes |
Integer. Number of nodes. |
edges |
Two-column integer matrix |
n_iter |
Integer. Number of iterations (default 200). |
ideal_len |
Numeric target edge length. If |
theta |
Barnes-Hut opening angle (default 1.0). Larger = faster, less accurate. |
cool |
Per-iteration temperature decay (default 0.98). |
min_dist |
Minimum distance clamp for repulsion / edge attraction (default 0.01). Avoids division-by-zero when nodes coincide. |
seed |
Optional integer for reproducible initialization. |
init |
Optional |
normalize |
Logical. If |
Numeric matrix n_nodes x 3 of node coordinates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.