Wgraph:Demo edge type

From FollowTheScore
Jump to: navigation, search
  • 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 edge_types command

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

 edge A B { type x }
 edge C D { type y }
 edge E F { type x;y;z }
 edge G H { type z;y;x }  // sequence of types is irrelevant
 edge I J { type r;s   }
 edge K L { type r;s;t }
 // 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

}}