Skip to contents

Add layout to graph

Usage

add_layout_(graph, ..., overwrite = TRUE)

Arguments

graph

The input graph.

...

Additional arguments are passed to layout_().

overwrite

Whether to overwrite the layout of the graph, if it already has one.

Value

The input graph, with the layout added.

Examples

(make_star(11) + make_star(11)) %>%
  add_layout_(as_star(), component_wise()) %>%
  plot()