Difference between revisions of "Wgraph:Demo hidden"

From FollowTheScore
Jump to: navigation, search
(New page: * The 'class' attribute is supported only for backward compatibility. * classes are identified by integer numbers * an edge can belong to one class only (or to none) * if an edge class is ...)
 
 
Line 1: Line 1:
 
* The 'class' attribute is supported only for backward compatibility.
 
* The 'class' attribute is supported only for backward compatibility.
* classes are identified by integer numbers
+
* Classes are identified by integer numbers.
* an edge can belong to one class only (or to none)
+
* Classnames can be assigned to class numbers (on graph level) but classnames do not play any role within ''Wgraph''.
* if an edge class is hidden, the edge will not influence the layout
+
* An edge can belong to one class only (or to none)
* if you want to hide more than one edge type you must repeat the 'hidden' command for each of them
+
* If an edge class is hidden, the edge will not influence the layout
 +
* If you want to hide more than one edge type you must repeat the 'hidden' command for each of them
 
----
 
----
 
The preferred way to hide edges, however, is the use of edge 'types' and the 'skip_edgetypes' command. It is not advisable to use 'class' and 'type' within the same graph.
 
The preferred way to hide edges, however, is the use of edge 'types' and the 'skip_edgetypes' command. It is not advisable to use 'class' and 'type' within the same graph.
 
----
 
----
{{#wgraph:png|thumb=60|wgl|
+
{{#wgraph:png|thumb=60|wgl|gdl|
 
   edge A B { class 1 }
 
   edge A B { class 1 }
 
   edge C D { class 2 }
 
   edge C D { class 2 }
Line 13: Line 14:
 
   edge G H { class 4 label secret  }
 
   edge G H { class 4 label secret  }
 
   hidden 2 hidden 4
 
   hidden 2 hidden 4
 +
  classname 2 "obscure relations"
 +
  classname 4 "strange relations"
 +
 
}}
 
}}

Latest revision as of 20:45, 20 October 2007

  • The 'class' attribute is supported only for backward compatibility.
  • Classes are identified by integer numbers.
  • Classnames can be assigned to class numbers (on graph level) but classnames do not play any role within Wgraph.
  • An edge can belong to one class only (or to none)
  • If an edge class is hidden, the edge will not influence the layout
  • If you want to hide more than one edge type you must repeat the 'hidden' command for each of them

The preferred way to hide edges, however, is the use of edge 'types' and the 'skip_edgetypes' command. It is not advisable to use 'class' and 'type' within the same graph.


{{#wgraph:png|thumb=60|wgl|gdl|

 edge A B { class 1 }
 edge C D { class 2 }
 edge E F { class 3 label visible }
 edge G H { class 4 label secret  }
 hidden 2 hidden 4
 classname 2 "obscure relations"
 classname 4 "strange relations"

}}