Layout the graph using an igraph layout function.
This function only works with the graph was initialised
with an object of class
layout_igraph(g, ..., method = igraph::layout_nicely)
Any options to pass to the
An igraph layout function to compute the nodes and edges (source and target) position on the canvas.
The function runs the
method to obtain the
y coordinates. These are added to the
data.frame (extracted from initial graph) and to the edges
y nested columns, e.g.:
c(source_x, target_x). These
can be used in
asp() (see example).