setCompact

fun setCompact(changed: Collection<GraphNode>, compact: Boolean?)(source)

makes changed compact when compact is true, expands them when it is false, or lets them follow compactNodes when it is null; the change can be undone