Skip to content

layout

general · scripts/general/layout.m

LAYOUT  Compute 2-D node coordinates for a graph (MATLAB compat).

  P = LAYOUT (G) or LAYOUT (G, 'force') returns an N-by-2 coordinate
  matrix using a simple force-directed / circular layout.
  LAYOUT (G, 'auto') matches MATLAB plot(G) default resolution to force
  for typical small graphs (GitLab #1770).