Difference between revisions of "Wgraph:Demo linear segments"

From FollowTheScore
Jump to: navigation, search
(New page: {{subst:Wgraph:Demo edge_type}})
 
 
Line 1: Line 1:
 
+
* note the vertical line from D1 to E1 as compared to D2 / E2
* attributes are only assigned if not set previously
 
* type attributes are assigned in the sequence in which types are defined
 
* assigment order can be changed with the <tt>edge_types</tt> command
 
 
{{#wgraph:svg|thumb=40|wgl|
 
{{#wgraph:svg|thumb=40|wgl|
   edge A B { type x }
+
   splines yes
   edge C D { type y }
+
  subgraph s1 { state boxed  linear_segments yes }
   edge E F { type x;y;z }
+
   node A1 s1 {}  node B1 s1 {}  node C1 s1 {}  node D1 s1 {}  node E1 s1 {}  node F1 s1 {}  
  edge G H { type z;y;x // sequence of types is irrelevant
+
   edge A1 B1 {} edge A1 C1 {}  edge A1 D1 {}  edge D1 E1 {}  edge E1 F1 {} edge A1 F1 {}
 
+
   subgraph s2 { state boxed }
  edge I J { type r;s  }
+
   node A2 s2 {}  node B2 s2 {}  node C2 s2 {}  node D2 s2 {}  node E2 s2 {}  node F2 s2 {}
  edge K L { type r;s;t }
+
   edge A2 B2 {} edge A2 C2 {} edge A2 D2 {} edge D2 E2 {} edge E2 F2 {} edge A2 F2 {}
 
 
   // sequence of type definitions is relevant
 
   edge_type x { label X }
 
   edge_type y { label Y }
 
  edge_type z { color red }
 
 
 
  edge_type s { label S }
 
  edge_type r { label R }
 
  edge_type t { label T }
 
 
 
  // t and u have priority over other edge types
 
  edge_types t;u
 
 
 
  edge_type * { linestyle dotted }
 
 
 
  y_space 100
 
  
 
}}
 
}}

Latest revision as of 09:21, 28 October 2007

  • note the vertical line from D1 to E1 as compared to D2 / E2

{{#wgraph:svg|thumb=40|wgl|

 splines yes
 subgraph s1 { state boxed   linear_segments yes }
 node A1 s1 {}  node B1 s1 {}  node C1 s1 {}  node D1 s1 {}  node E1 s1 {}  node F1 s1 {} 
 edge A1 B1 {}  edge A1 C1 {}  edge A1 D1 {}  edge D1 E1 {}  edge E1 F1 {}  edge A1 F1 {}
 subgraph s2 { state boxed }
 node A2 s2 {}  node B2 s2 {}  node C2 s2 {}  node D2 s2 {}  node E2 s2 {}  node F2 s2 {}
 edge A2 B2 {}  edge A2 C2 {}  edge A2 D2 {}  edge D2 E2 {}  edge E2 F2 {}  edge A2 F2 {}

}}