Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Graph_Mode

mattt edited this page Nov 16, 2020 · 2 revisions

Graph.Mode

Technique for optimizing the layout. For neato, if mode is "major", neato uses stress majorization. If mode is "KK", neato uses a version of the gradient descent method. The only advantage to the latter technique is that it is sometimes appreciably faster for small (number of nodes < 100) graphs. A significant disadvantage is that it may cycle. There are two experimental modes in neato, "hier", which adds a top-down directionality similar to the layout used in dot, and "ipsep", which allows the graph to specify minimum vertical and horizontal distances between nodes. (See the sep attribute.)

public enum Mode

For sfdp, the default mode is "spring", which corresponds to using a spring-electrical model. Setting mode to "maxent" causes a similar model to be run but one that also takes into account edge lengths specified by the "len" attribute.

Inheritance

String

Enumeration Cases

major

case major

kk

case kk

hier

case hier

ipsep

case ipsep

spring

case spring

maxent

case maxent
Clone this wiki locally