layout.bipartite()
was renamed to layout_as_bipartite()
to create a more
consistent API.
layout.bipartite(graph, types = NULL, hgap = 1, vgap = 1, maxiter = 100)
The bipartite input graph. It should have a logical
‘type
’ vertex attribute, or the types
argument must be
given.
A logical vector, the vertex types. If this argument is
NULL
(the default), then the ‘type
’ vertex attribute is
used.
Real scalar, the minimum horizontal gap between vertices in the same layer.
Real scalar, the distance between the two layers.
Integer scalar, the maximum number of iterations in the crossing minimization stage. 100 is a reasonable default; if you feel that you have too many edge crossings, increase this.