Difference between revisions of "Wgraph:Example 2"
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | ==  | + | == A second example == | 
| − | This  | + | This example shows a small graph together with its WGL and the resulting GDL. | 
| − | + | In GDL, | |
| + | * a footprint about the generation date is inserted | ||
| + | * colors are translated | ||
| + | * display_edgelabels is set to true by default | ||
| + | * node and edgetypes are 'flattened'. | ||
| + | * egdetypes are mapped to 'classnames'. | ||
| + | * href's are converted | ||
| − | { | + | {|class=wikitable | 
| − | {{#wgraph: thumb=50 | svg | | + | !with manhattan edges,<br>top down orientation | 
| − | + | !with splines<br>left to right orientation | |
| − | + | |- | |
| − | + | | | |
| − | + | {{#wgraph: thumb=50 | svg | png | gdl | | |
| − | + | node Picasso        { } | |
| − | + | edge Signac Picasso { } | |
| − | + | node Gauguin        { type Painter;Poet } | |
| − | + | node Henri_Matisse  { url Henri_Matisse } | |
| − | + | node Signac         { type Painter scaling 2 bordercolor blue} | |
| − | + | ||
| − | + | edge Gauguin "Henri Matisse" { | |
| − | + |                       type friend;roommate} | |
| − | + | edge from Gauguin to Signac { | |
| − | + |                       type friend   | |
| − | + |                       label "good friend"} | |
| − | + | edge from Signac to Henri_Matisse {} | |
| − | + | nodetype Poet       { color=green shape=ellipse } | |
| − | + | nodetype Painter    { color yellow } | |
| − | + | edgetype roommate   { color gold } | |
| − | + | edgetype friend     { color #ff33aa fontname:HelvO10 } | |
| − | + | orientation top_to_bottom    | |
| − | + | splines = yes | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| }} | }} | ||
| + | | | ||
| + | {{#wgraph: thumb=50 | wgl | | ||
| + | node Picasso        { } | ||
| + | edge Signac Picasso { } | ||
| + | node Gauguin        { type Painter;Poet } | ||
| + | node Henri_Matisse  { url Henri_Matisse } | ||
| + | node Signac         { type Painter scaling 2 bordercolor blue} | ||
| + | |||
| + | edge Gauguin "Henri Matisse" { | ||
| + |                       type friend;roommate} | ||
| + | edge from Gauguin to Signac { | ||
| + |                       type friend  | ||
| + |                       label "good friend"} | ||
| + | edge from Signac to Henri_Matisse {} | ||
| + | nodetype Poet       { color=green shape=ellipse } | ||
| + | nodetype Painter    { color yellow } | ||
| + | edgetype roommate   { color gold } | ||
| + | edgetype friend     { color #ff33aa fontname:HelvO10 } | ||
| + | orientation top_to_bottom    | ||
| + | splines = yes | ||
| + | }} | ||
| + | |} | ||
| + | |||
| + |  continue with [[Wgraph:Example 3]] .. | ||
| + |  back to [[Wgraph:Example 1]] .. | ||
| + | |||
| + | [[Category:Wgraph]] | ||
Latest revision as of 13:33, 15 August 2007
A second example
This example shows a small graph together with its WGL and the resulting GDL. In GDL,
- a footprint about the generation date is inserted
- colors are translated
- display_edgelabels is set to true by default
- node and edgetypes are 'flattened'.
- egdetypes are mapped to 'classnames'.
- href's are converted
| with manhattan edges, top down orientation | with splines left to right orientation | 
|---|---|
| {{#wgraph: thumb=50 | svg | png | gdl | node Picasso { } edge Signac Picasso { } node Gauguin { type Painter;Poet } node Henri_Matisse { url Henri_Matisse } node Signac { type Painter scaling 2 bordercolor blue} edge Gauguin "Henri Matisse" { type friend;roommate} edge from Gauguin to Signac {                      type friend 
                     label "good friend"}
edge from Signac to Henri_Matisse {} nodetype Poet { color=green shape=ellipse } nodetype Painter { color yellow } edgetype roommate { color gold } edgetype friend { color #ff33aa fontname:HelvO10 } orientation top_to_bottom splines = yes }} | {{#wgraph: thumb=50 | wgl | node Picasso { } edge Signac Picasso { } node Gauguin { type Painter;Poet } node Henri_Matisse { url Henri_Matisse } node Signac { type Painter scaling 2 bordercolor blue} edge Gauguin "Henri Matisse" { type friend;roommate} edge from Gauguin to Signac {                      type friend 
                     label "good friend"}
edge from Signac to Henri_Matisse {} nodetype Poet { color=green shape=ellipse } nodetype Painter { color yellow } edgetype roommate { color gold } edgetype friend { color #ff33aa fontname:HelvO10 } orientation top_to_bottom splines = yes }} | 
continue with Wgraph:Example 3 .. back to Wgraph:Example 1 ..
