Attribute "constraint"

Use:optional
Used by:edge
Description:If false, the edge is not used in ranking the nodes.

Normally, edges are used to place the nodes on ranks. In the second graph below, all nodes were placed on different ranks. In the first example, the edge b -> c does not add a constraint during rank assignment, so the only constraints are that a be above b and c.
Values:true / false
Default Value:false
Sponsored links:

Example 1/2:
Source code:
<graph file-name="graphs/constraint1" label="constraint='false'">
  
<node id="a"/>
<node id="b"/>
<node id="c"/>
<edge from="a" to="b"/>
<edge from="a" to="c"/>
<edge from="b" to="c" constraint="false"/>
</graph>
Example 2/2:
Source code:
<graph file-name="graphs/constraint2" label="constraint='true'">
  
<node id="a"/>
<node id="b"/>
<node id="c"/>
<edge from="a" to="b"/>
<edge from="a" to="c"/>
<edge from="b" to="c" constraint="true"/>
</graph>
Sponsored links

 Copyright 2002-2010 by Martin Loetzsch (http://martin-loetzsch.de), all rights reserved. See the DotML licence for details.