Wgraph:Commands c

From FollowTheScore
Revision as of 07:29, 28 October 2007 by Gero (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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:class|0|1}}#class|class]]

unsigned integer

1

You can assign an edge to a class. Classes have numeric id´s and can be assigned a name using the classname attribute. The local aiSee client allows to hide/show edges based on their class.
Wgraph supports this only for backward compatibilty reasons. Using edgetypes and nodetypes is more flexible. See [[Wgraph:Commands {{#sub:type|0|1}}#type|type]]. Wgraph maps its edgetypes to some extent to classes so that the local aiSee client will still see some edge classes even if you do not use that concept within Wgraph.

edge, edgetype

{{#vardefine:ref|{{#replace:E:class|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#}}}}class

demo

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

string

empty string

Assigns a string as a mnemonic name to an edge class. The string is shown (together with the numeric class id) in a menu of the local aiSee client. Classnames do not play a role within Wgraph. Wgraph maps its edgetypes to some extent to GDL-classes and uses the edgetype name as classname.

graph

{{#vardefine:ref|{{#replace:G:classname|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#}}}}classname

demo

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

unsigned integer

infinite

Delimits the number of iterations used to reduce edge crossings. Setting this to a small value can speed up the layout of huge graphs.

graph

{{#vardefine:ref|{{#replace:G:c|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#}}}}cmax

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

unsigned integer

0

Guarantess that the specified number of iterations will at least be used to reduce edge crossings. Setting this parameter may slow down the layout of huge graphs but may in some constellations lead to better results.

graph

{{#vardefine:ref|{{#replace:G:c|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#}}}}cmin

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

name or RGB-hex

Set the color of the object (line color for edge, background color for shapes).

node, nodetype, edge, edgetype

{{#vardefine:ref|{{#replace:N:color|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#}}}}color

demo

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

colorset

aiSee maps custom colors to a table of ~200 entries. The color_entry command describes this mapping. Wgraph handles this for you so that you need not bother with color entries. Have a look at the resulting GDL to understand the details.

graph

{{#vardefine:ref|{{#replace:G:colorentry|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#}}}}color_entry

demo

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

boolean

yes

(de)activate a layout algorithm which tries to reduce crossings on a local horizon after the general layout has been done; permutes pairs of nodes

graph

{{#vardefine:ref|{{#replace:G:crossingoptimization|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#}}}}crossing_optimization

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

boolean

yes

(de)activate a layout algorithm which tries to reduce crossings on a local horizon after the general layout has been done; permutes all nodes with equal crossing weight. Switching this parameter to off will save layout time.

graph

{{#vardefine:ref|{{#replace:G:crossingphase2|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#}}}}crossing_phase_2

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

bary, median, barymedian, medianbary

bary

influences the layout algorithm. Should be set depending on the average degree of the nodes in your graph. See the aiSee documentation.

graph

{{#vardefine:ref|{{#replace:G:crossingweight|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#}}}}crossing_weight