From e2cdc925aa3b591ca710c5a9eb4ca4481059be85 Mon Sep 17 00:00:00 2001 From: Emden Gansner Date: Wed, 15 Feb 2017 12:39:02 -0500 Subject: [PATCH] Add documentation on the newrank attribute. --- doc/info/attrs.html | 14 ++++++++++++++ doc/infosrc/attrs | 10 ++++++++++ 2 files changed, 24 insertions(+) diff --git a/doc/info/attrs.html b/doc/info/attrs.html index 3767ade2e..1c411ecee 100644 --- a/doc/info/attrs.html +++ b/doc/info/attrs.html @@ -326,6 +326,9 @@ of the layout programs. mosek Gbool falseneato only + newrank +Gbool +falsedot only nodesep Gdouble0.250.02 nojustify @@ -1326,6 +1329,17 @@ of the layout programs.
If Graphviz is built with MOSEK defined, mode=ipsep and mosek=true, the Mosek software (www.mosek.com) is use to solve the ipsep constraints. +
newrank +
The original ranking algorithm in dot is recursive on clusters. This can produce fewer ranks + and a more compact layout, but sometimes at the cost of a head node being place on a higher + rank than the tail node. It also assumes that a node is not constrained in separate, + incompatible subgraphs. For example, a node cannot be in a cluster and also be constrained by + rank=same with a node not in the cluster. +

+ If newrank=true, the ranking algorithm does a single global ranking, ignoring clusters. + This allows nodes to be subject to multiple constraints. Rank constraints will usually take + precedence over edge constraints. +

nodesep
In dot, this specifies the minimum space between two adjacent nodes in the same rank, in inches.

diff --git a/doc/infosrc/attrs b/doc/infosrc/attrs index 9196884f3..225079bac 100644 --- a/doc/infosrc/attrs +++ b/doc/infosrc/attrs @@ -771,6 +771,16 @@ graph, the input can specify all of the relevant distances. :mosek:G:bool:false; neato If Graphviz is built with MOSEK defined, mode=ipsep and mosek=true, the Mosek software (www.mosek.com) is use to solve the ipsep constraints. +:newrank:G:bool:false; dot +The original ranking algorithm in dot is recursive on clusters. This can produce fewer ranks +and a more compact layout, but sometimes at the cost of a head node being place on a higher +rank than the tail node. It also assumes that a node is not constrained in separate, +incompatible subgraphs. For example, a node cannot be in a cluster and also be constrained by +rank=same with a node not in the cluster. +

+If newrank=true, the ranking algorithm does a single global ranking, ignoring clusters. +This allows nodes to be subject to multiple constraints. Rank constraints will usually take +precedence over edge constraints. :nodesep:G:double:0.25:0.02; In dot, this specifies the minimum space between two adjacent nodes in the same rank, in inches.

-- 2.40.0