From: erg Date: Thu, 7 Jan 2010 20:37:33 +0000 (+0000) Subject: Update to reflect square shape, model=mds, and a list of rankseps for twopi X-Git-Tag: LAST_LIBGRAPH~32^2~1488 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=572a441f59016842ba7ccec5f291794d38751f84;p=graphviz Update to reflect square shape, model=mds, and a list of rankseps for twopi --- diff --git a/doc/info/attrs.html b/doc/info/attrs.html index 8e233eb71..49a46c34a 100644 --- a/doc/info/attrs.html +++ b/doc/info/attrs.html @@ -358,7 +358,8 @@ This field indicates which graph component uses the attribute. Grankdir TBdot only ranksep -Gdouble0.5(dot)
1.0(twopi)0.02twopi, dot only +Gdouble
doubleList +0.5(dot)
1.0(twopi)0.02twopi, dot only ratio Gdouble
string rects @@ -1105,6 +1106,12 @@ This field indicates which graph component uses the attribute. edge length to be the number of nodes that are neighbors of exactly one of the end points, and then calculates the shortest paths. This helps to separate nodes with high degree. +

+ For more control of distances, one can use model=mds. In this + case, the len of an edge is used as the ideal distance + between its vertices. A shortest path calculation is only used for + pairs of nodes not connected by an edge. Thus, by supplying a complete + graph, the input can specify all of the relevant distances.

mosek
If Graphviz is built with MOSEK defined, mode=ipsep and mosek=true, @@ -1393,7 +1400,12 @@ This field indicates which graph component uses the attribute. contains "equally", the centers of all ranks are spaced equally apart. Note that both settings are possible, e.g., ranksep = "1.2 equally". - In twopi, specifies radial separation of concentric circles. +

+ In twopi, this attribute specifies the radial separation of concentric circles. + For twopi, ranksep can also be a list of doubles. The first double specifies + the radius of the inner circle; the second double specifies the increase in + radius from the first circle to the second; etc. If there are more circles than + numbers, the last number is used as the increment for the remainder.

ratio
Sets the aspect ratio (drawing height/drawing width) for the drawing. @@ -1825,6 +1837,10 @@ the given types. the righthand one, is treated as the head for the purpose of interpreting "forward" and "back". +
doubleList +
A colon-separated list of doubles: d(:d)* + where each d is a double. +
escString
string allowing escape sequences which are replaced according to the context. diff --git a/doc/info/sdlshapes.png b/doc/info/sdlshapes.png index dc0bba64d..adac084b7 100644 Binary files a/doc/info/sdlshapes.png and b/doc/info/sdlshapes.png differ diff --git a/doc/info/shapes.html b/doc/info/shapes.html index 6e91e97b6..b1c7be479 100644 --- a/doc/info/shapes.html +++ b/doc/info/shapes.html @@ -99,30 +99,32 @@ The possible polygon-based shapes are displayed below. - + Mcircle rect rectangle - none + square + - + none note tab folder - box3d + + box3d component diff --git a/doc/info/square.gif b/doc/info/square.gif new file mode 100644 index 000000000..92a9d2146 Binary files /dev/null and b/doc/info/square.gif differ diff --git a/doc/infosrc/attrs b/doc/infosrc/attrs index 9eb4f3d79..2f84fcdf7 100644 --- a/doc/infosrc/attrs +++ b/doc/infosrc/attrs @@ -604,6 +604,12 @@ model to compute the distances. This tends to emphasize clusters. If edge length to be the number of nodes that are neighbors of exactly one of the end points, and then calculates the shortest paths. This helps to separate nodes with high degree. +

+For more control of distances, one can use model=mds. In this +case, the len of an edge is used as the ideal distance +between its vertices. A shortest path calculation is only used for +pairs of nodes not connected by an edge. Thus, by supplying a complete +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. @@ -858,14 +864,19 @@ from left to right. By default, graphs are laid out from top to bottom.

This attribute also has a side-effect in determining how record nodes are interpreted. See record shapes. -:ranksep:G:double:0.5(dot)/1.0(twopi):0.02; dot,twopi +:ranksep:G:double/doubleList:0.5(dot)/1.0(twopi):0.02; dot,twopi In dot, this gives the desired rank separation, in inches. This is the minimum vertical distance between the bottom of the nodes in one rank and the tops of nodes in the next. If the value contains "equally", the centers of all ranks are spaced equally apart. Note that both settings are possible, e.g., ranksep = "1.2 equally". -In twopi, specifies radial separation of concentric circles. +

+In twopi, this attribute specifies the radial separation of concentric circles. +For twopi, ranksep can also be a list of doubles. The first double specifies +the radius of the inner circle; the second double specifies the increase in +radius from the first circle to the second; etc. If there are more circles than +numbers, the last number is used as the increment for the remainder. :ratio:G:double/string; Sets the aspect ratio (drawing height/drawing width) for the drawing. Note that this is adjusted before diff --git a/doc/infosrc/square.gif b/doc/infosrc/square.gif new file mode 100644 index 000000000..92a9d2146 Binary files /dev/null and b/doc/infosrc/square.gif differ diff --git a/doc/infosrc/types b/doc/infosrc/types index 53dd211e8..99cdc7a83 100644 --- a/doc/infosrc/types +++ b/doc/infosrc/types @@ -112,6 +112,9 @@ if dirType is "back" or "both"; For undirected edges T -- H;, one of the nodes, usually the righthand one, is treated as the head for the purpose of interpreting "forward" and "back". +:doubleList +A colon-separated list of doubles: d(:d)* + where each d is a double. :escString string allowing escape sequences which are replaced according to the context.