Wgraph:Demo layer

From FollowTheScore
Jump to: navigation, search
  • Layers assign relative vertical positions (assuming orientation = top_to_bottom)
    • X and Z are placed above Y (Layer C being "below" layers A and B)
    • X and Z are on the same level, however, as there is no need to put them on different levels
  • Levels assign a node directly to an absolute vertical level
    • 0 is the top-most level
    • as an exception to absolute positioning the lowest level is raised so far that the graph does not get unnecessarily large (node S is NOT placed on level 8 but on the next level larger than three.

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

 node X { layer A }
 node Y { layer C }
 node Z { layer B }
 edge X Y {}
 edge Y Z {}
 node U { layer B }
 node V { layer A }
 node W { layer C }
 edge U V {}
 edge U W {}
 node R { level 1 }
 node S { level 8 }
 node T { level 3 }
 edge R S {}
 edge S T {}
 equal_y_dist yes
 y_space = 40

}}