Difference between revisions of "Wgraph:Commands c"
Line 1: | Line 1: | ||
− | |||
− | |||
{{cmdref menu}} | {{cmdref menu}} | ||
{|class=wikitable | {|class=wikitable | ||
Line 12: | Line 10: | ||
|aiseeref = E:class | |aiseeref = E:class | ||
|wgraphref = hidden | |wgraphref = hidden | ||
− | |effect = | + | |effect = You can assign an edge to a class. Classes have numeric id´s and can be assigned a name using the <tt>classname</tt> attribute. The local aiSee client allows to hide/show edges based on their class.<br> |
+ | Wgraph supports this only for backward compatibilty reasons. Using '''edgetypes''' and '''nodetypes''' is more flexible. {{See Wgraph|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. | ||
}} | }} | ||
|------------------------------- | |------------------------------- | ||
Line 21: | Line 20: | ||
|context = graph | |context = graph | ||
|aiseeref = G:classname | |aiseeref = G:classname | ||
− | |wgraphref = | + | |wgraphref = hidden |
− | |effect = | + | |effect = 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. |
}} | }} | ||
|------------------------------- | |------------------------------- | ||
Line 31: | Line 30: | ||
|context = graph | |context = graph | ||
|aiseeref = G:attr-cmax | |aiseeref = G:attr-cmax | ||
− | |wgraphref = | + | |wgraphref = |
− | |effect = | + | |effect = Delimits the number of iterations used to reduce edge crossings. Setting this to a small value can speed up the layout of huge graphs. |
}} | }} | ||
|------------------------------- | |------------------------------- | ||
Line 40: | Line 39: | ||
|default = ''0'' | |default = ''0'' | ||
|context = graph | |context = graph | ||
− | |aiseeref = G:attr- | + | |aiseeref = G:attr-cmax |
− | |wgraphref = | + | |wgraphref = |
− | |effect = | + | |effect = 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. |
}} | }} | ||
|------------------------------- | |------------------------------- | ||
Line 52: | Line 51: | ||
|aiseeref = N:color | |aiseeref = N:color | ||
|wgraphref = color | |wgraphref = color | ||
− | |effect = | + | |effect = Set the color of the object (line color for edge, background color for shapes). |
}} | }} | ||
|------------------------------- | |------------------------------- | ||
{{Wgraph Command | {{Wgraph Command | ||
− | |command = | + | |command = color_entry |
|type = colorset | |type = colorset | ||
|default = | |default = | ||
|context = graph | |context = graph | ||
|aiseeref = G:color_entry | |aiseeref = G:color_entry | ||
− | |wgraphref = | + | |wgraphref = color |
− | |effect = | + | |effect = aiSee maps custom colors to a table of ~200 entries. The <tt>color_entry</tt> 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. |
}} | }} | ||
|------------------------------- | |------------------------------- | ||
Line 68: | Line 67: | ||
|command = crossing_optimization | |command = crossing_optimization | ||
|type = boolean | |type = boolean | ||
− | |default = | + | |default = yes |
|context = graph | |context = graph | ||
− | |aiseeref = G:attr- | + | |aiseeref = G:attr-crossing_optimization |
− | |wgraphref = | + | |wgraphref = |
− | |effect = | + | |effect = (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 |
}} | }} | ||
|------------------------------- | |------------------------------- | ||
Line 78: | Line 77: | ||
|command = crossing_phase_2 | |command = crossing_phase_2 | ||
|type = boolean | |type = boolean | ||
− | |default = | + | |default = yes |
|context = graph | |context = graph | ||
− | |aiseeref = G:attr- | + | |aiseeref = G:attr-crossing_phase_2 |
− | |wgraphref = | + | |wgraphref = |
− | |effect = | + | |effect = (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. |
}} | }} | ||
|------------------------------- | |------------------------------- | ||
Line 91: | Line 90: | ||
|context = graph | |context = graph | ||
|aiseeref = G:crossing_weight | |aiseeref = G:crossing_weight | ||
− | |wgraphref = | + | |wgraphref = |
− | |effect = | + | |effect = influences the layout algorithm. Should be set depending on the average degree of the nodes in your graph. See the aiSee documentation. |
}} | }} | ||
|------------------------------- | |------------------------------- | ||
|} | |} |
Revision as of 19:43, 20 October 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:class|0|1}}#class|class]] |
unsigned integer |
(none) |
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. |
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 |
|
[[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 |
|
[[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:attr-cmax|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:attr-cmax|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 |
||
[[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:color_entry|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 |
||
[[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:attr-crossing_optimization|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:attr-crossing_phase_2|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:crossing_weight|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 |