Difference between revisions of "Wgraph:Example 1"

From FollowTheScore
Jump to: navigation, search
Line 1: Line 1:
== sample graphs for mediawiki parser extension 'wgraph' ==
 
  
 +
== A first example ==
  
 
{|class=wikitable
 
{|class=wikitable
!with manhattan edges,<br>top down orientation
+
![[Wgraph:Sample 1.wgl|WGL source]]
!with splines<br>left to right orientation
+
!orientation = top_to_bottom<br>node.color = lightyellow
 +
!align=left|orientation = left_to_right<br>node.color = lightmagenta<br>node.shape = hexagon<br>node.width = 30<br>edge.color = red
 
|-
 
|-
|
+
|{{Wgraph:Sample 1.wgl}}
{{#wgraph: thumb=50 | svg | png |
+
|{{#wgraph: name= wgraph_sample_1  | png | svg |
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" {
+
   {{Wgraph:Sample 1.wgl}}
                      type friend;roommate}
+
    node.color = lightyellow
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" {
+
|{{#wgraph: name= wgraph_sample_1a | png | svg |
                      type friend;roommate}
+
 
edge from Gauguin to Signac {
+
  {{Wgraph:Sample 1.wgl}}  
                      type friend
+
    orientation = left_to_right
                      label "good friend"}
+
    node.color = lightmagenta
edge from Signac to Henri_Matisse {}
+
    node.shape = hexagon
nodetype Poet      { color=green shape=ellipse }
+
    node.width = 30
nodetype Painter    { color yellow }
+
     edge.color = red
edgetype roommate  { color gold }
+
   }}
edgetype friend     { color #ff33aa fontname:HelvO10 }
 
orientation top_to_bottom    
 
splines = yes
 
}}
 
 
|}
 
|}
 +
 +
[[Category:Wgraph]]

Revision as of 11:04, 22 July 2007

A first example

WGL source orientation = top_to_bottom
node.color = lightyellow
orientation = left_to_right
node.color = lightmagenta
node.shape = hexagon
node.width = 30
edge.color = red
node A {}
node B {}
node C {}
node D {}
node E {}
edge A D {}
edge A B {}
edge A C {}
edge B C {}
edge B E {}
png | svg |
  node A {} 
node B {}
node C {}
node D {}
node E {}
edge A D {}
edge A B {}
edge A C {}
edge B C {}
edge B E {}
   node.color = lightyellow
 }}
png | svg |
  node A {} 
node B {}
node C {}
node D {}
node E {}
edge A D {}
edge A B {}
edge A C {}
edge B C {}
edge B E {} 
   orientation = left_to_right
   node.color = lightmagenta
   node.shape = hexagon
   node.width = 30
   edge.color = red
 }}