Adjust the layout of a graph to prevent node overlaps by considering node widths and heights.
adjustlayout(graph, layout, width, height = 2, scale = 100, iter = 100)A matrix with adjusted layout coordinates.
An igraph graph object.
A matrix with two columns representing the initial layout coordinates.
A numeric vector of node widths.
The height constraint for nodes.
Default is 2.
The scaling factor for the layout.
Default is 100.
The number of iterations for the adjustment algorithm.
Default is 100.