R igraph: plot components with a given layout

Hi all,

I went trough a few tutorials and still can’t figure this out. I have an un-directed graph, which consists of several components. I would like to plot it using e.g. circular or a star layout; however, I would like the layout to be applied to each component separately. I can try and “brute-force” it, but I feel like I’m missing something obvious.

Thank you!

g <- make_ring(3) + make_ring(4) + make_ring(5)
plot(g, layout=layout_components(g, layout_in_circle))

Thank you very much! This is what it needed.