Difference between revisions of "Wgraph:Commands n"

From FollowTheScore
Jump to: navigation, search
(New page: 'nearedges' => 'boolean', 'nodealignment' => 'valign', 'nodes' => 'boolean', 'nodetypes' => 'typelist', // graph comma separated priority sequence {{cmdref menu}} {|cla...)
 
 
Line 1: Line 1:
'nearedges' => 'boolean',
 
'nodealignment' => 'valign',
 
'nodes' => 'boolean',
 
'nodetypes' => 'typelist', // graph        comma separated priority sequence
 
 
 
{{cmdref menu}}
 
{{cmdref menu}}
 
{|class=wikitable
 
{|class=wikitable
Line 9: Line 4:
 
|-------------------------------
 
|-------------------------------
 
{{Wgraph Command
 
{{Wgraph Command
  |command  = ?
+
  |command  = near_edge
  |type      = integer ''xyz''
+
  |type      = complex
  |default  =  
+
  |default  = -
  |context  = graph, subgraph, node, nodetype, edge, edgetype
+
  |context  = graph, subgraph
  |aiseeref  = G:attr-amax
+
  |aiseeref  =  
  |wgraphref = ?
+
  |wgraphref =  
  |effect    =  
+
  |effect    = Defines a near edge. Is equivalent to <tt>edge ... { kind near  ... }</tt>
 
}}
 
}}
 
|-------------------------------
 
|-------------------------------
 
{{Wgraph Command
 
{{Wgraph Command
  |command  = ?
+
  |command  = near_edges
  |type      = integer ''xyz''
+
  |type      = boolean
  |default  =  
+
  |default  = yes
  |context  = graph, subgraph, node, nodetype, edge, edgetype
+
  |context  = graph, subgraph
  |aiseeref  = G:attr-amax
+
  |aiseeref  = G:nearedges
  |wgraphref = ?
+
  |wgraphref = kind
  |effect    =  
+
  |effect    = When set to ''no'' the drawing of near edges will be disabled, i.e. edges of ''kind = near'' will be drawn as normal edges.
 
}}
 
}}
 
|-------------------------------
 
|-------------------------------
 
{{Wgraph Command
 
{{Wgraph Command
  |command  = ?
+
  |command  = node_alignment
  |type      = integer ''xyz''
+
  |type      = ''top, center, bottom''
  |default  =  
+
  |default  = ''center''
  |context  = graph, subgraph, node, nodetype, edge, edgetype
+
  |context  = graph, subgraph
  |aiseeref  = G:attr-amax
+
  |aiseeref  = G:nodealignment
  |wgraphref = ?
+
  |wgraphref = alignment
  |effect    =  
+
  |effect    = influences the way nodes are drawn in a hierarchical layout
 
}}
 
}}
 
|-------------------------------
 
|-------------------------------
 
{{Wgraph Command
 
{{Wgraph Command
  |command  = ?
+
  |command  = node
  |type      = integer ''xyz''
+
  |type      = complex
  |default  =  
+
  |default  = -
  |context  = graph, subgraph, node, nodetype, edge, edgetype
+
  |context  = graph, subgraph
  |aiseeref  = G:attr-amax
+
  |aiseeref  =  
  |wgraphref = ?
+
  |wgraphref =  
  |effect    =  
+
  |effect    = define a node
 
}}
 
}}
 
|-------------------------------
 
|-------------------------------
 
{{Wgraph Command
 
{{Wgraph Command
  |command  = ?
+
  |command  = nodes
  |type      = integer ''xyz''
+
  |type      = boolean
  |default  =  
+
  |default  = ''yes''
  |context  = graph, subgraph, node, nodetype, edge, edgetype
+
  |context  = graph
  |aiseeref  = G:attr-amax
+
  |aiseeref  = G:nodes
  |wgraphref = ?
+
  |wgraphref = nodes
  |effect    =  
+
  |effect    = When set to ''no'' nodes will not be drawn at all. It may make sense to set the node size (width, height) to a small value in that case.
 
}}
 
}}
 
|-------------------------------
 
|-------------------------------
 
{{Wgraph Command
 
{{Wgraph Command
  |command  = ?
+
  |command  = node_type
  |type      = integer ''xyz''
+
  |type      = list of strings
  |default  =  
+
  |default  = ''empty list''
  |context  = graph, subgraph, node, nodetype, edge, edgetype
+
  |context  = graph
  |aiseeref  = G:attr-amax
+
  |aiseeref  =  
  |wgraphref = ?
+
  |wgraphref = node_type
  |effect    =  
+
  |effect    = assigns one or more node types to a node
 
}}
 
}}
 
|-------------------------------
 
|-------------------------------
 
{{Wgraph Command
 
{{Wgraph Command
  |command  = ?
+
  |command  = node_types
  |type      = integer ''xyz''
+
  |type      = sequence of node type names
  |default  =  
+
  |default  = ''empty list''
|context  = graph, subgraph, node, nodetype, edge, edgetype
+
  |context  = graph
|aiseeref  = G:attr-amax
+
  |aiseeref  =  
|wgraphref = ?
+
  |wgraphref = node_type
|effect    =
+
  |effect    = defines a precedence order for applying node type based attributes to nodes.
}}
 
|-------------------------------
 
{{Wgraph Command
 
|command  = ?
 
|type      = integer ''xyz''
 
|default  =
 
  |context  = graph, subgraph, node, nodetype, edge, edgetype
 
  |aiseeref  = G:attr-amax
 
  |wgraphref = ?
 
  |effect    =  
 
 
}}
 
}}
 
|-------------------------------
 
|-------------------------------
 
|}
 
|}

Latest revision as of 09:37, 7 November 2007

a - b - c - d - e - f - g - h - i - j - k - l - m - n - o - p - q - r - s - t - u - v - w - x - y - z
Show attributes for     node -- nodetype -- edge -- edgetype -- graph/subgraph -- all

Command Type Default Description Context aiSee
manual
Example
[[Wgraph:Commands {{#sub:near_edge|0|1}}#near_edge|near_edge]]

complex

-

Defines a near edge. Is equivalent to edge ... { kind near ... }

graph, subgraph

[[Wgraph:Commands {{#sub:near_edges|0|1}}#near_edges|near_edges]]

boolean

yes

When set to no the drawing of near edges will be disabled, i.e. edges of kind = near will be drawn as normal edges.

graph, subgraph

{{#vardefine:ref|{{#replace:G:nearedges|G:|44list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|N:|45list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|E:|46list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|EF:|35.htm#}}}}near_edges

demo

[[Wgraph:Commands {{#sub:node_alignment|0|1}}#node_alignment|node_alignment]]

top, center, bottom

center

influences the way nodes are drawn in a hierarchical layout

graph, subgraph

{{#vardefine:ref|{{#replace:G:nodealignment|G:|44list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|N:|45list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|E:|46list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|EF:|35.htm#}}}}node_alignment

demo

[[Wgraph:Commands {{#sub:node|0|1}}#node|node]]

complex

-

define a node

graph, subgraph

[[Wgraph:Commands {{#sub:nodes|0|1}}#nodes|nodes]]

boolean

yes

When set to no nodes will not be drawn at all. It may make sense to set the node size (width, height) to a small value in that case.

graph

{{#vardefine:ref|{{#replace:G:nodes|G:|44list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|N:|45list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|E:|46list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|EF:|35.htm#}}}}nodes

demo

[[Wgraph:Commands {{#sub:node_type|0|1}}#node_type|node_type]]

list of strings

empty list

assigns one or more node types to a node

graph

demo

[[Wgraph:Commands {{#sub:node_types|0|1}}#node_types|node_types]]

sequence of node type names

empty list

defines a precedence order for applying node type based attributes to nodes.

graph

demo