layout.davidson.harel | R Documentation |
layout.davidson.harel()
was renamed to layout_with_dh()
to create a more
consistent API.
layout.davidson.harel(
graph,
coords = NULL,
maxiter = 10,
fineiter = max(10, log2(vcount(graph))),
cool.fact = 0.75,
weight.node.dist = 1,
weight.border = 0,
weight.edge.lengths = edge_density(graph)/10,
weight.edge.crossings = 1 - sqrt(edge_density(graph)),
weight.node.edge.dist = 0.2 * (1 - edge_density(graph))
)
graph |
The graph to lay out. Edge directions are ignored. |
coords |
Optional starting positions for the vertices. If this argument
is not |
maxiter |
Number of iterations to perform in the first phase. |
fineiter |
Number of iterations in the fine tuning phase. |
cool.fact |
Cooling factor. |
weight.node.dist |
Weight for the node-node distances component of the energy function. |
weight.border |
Weight for the distance from the border component of the energy function. It can be set to zero, if vertices are allowed to sit on the border. |
weight.edge.lengths |
Weight for the edge length component of the energy function. |
weight.edge.crossings |
Weight for the edge crossing component of the energy function. |
weight.node.edge.dist |
Weight for the node-edge distance component of the energy function. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.