Skip to contents

Layout functions add x and y vertex attributes to the graph object. The object is modified in place, and its shallow copy is returned.

Usage

layout_nicely(graph, ...)

Arguments

graph

An igraph_ptr object.

...

Additional arguments passed to the layout function.

Value

An igraph_ptr object with vertex attributes x and y.

See also

Examples

layout_nicely(graph_tree(5L)) |> Vattr()
#> # A tibble: 5 × 2
#>        x     y
#>    <dbl> <dbl>
#> 1 -3.00  1.85 
#> 2 -1.50  1.92 
#> 3 -4.29  1.80 
#> 4 -0.694 2.95 
#> 5 -0.612 0.961