Wgraph:Demo invisible

From FollowTheScore
Jump to: navigation, search
  • invisible hides a graphical object
  • invisible objects still influence graph layout
  • if an edge is invisible the nodes it connects will still be drawn
  • if an object is invisible, its edges will still be drawn
  • if the edges connected to an object are set to invisible the node does not become single by that.
  • label texts of invisible edges influence the layout. As a consequence, S3 is bigger than S2

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

 subgraph S1 { state boxed }
 node A1 S1  { }
 node B1 S1  { }
 node C1 S1  { }
 edge A1 B1  { }
 subgraph S2 { state boxed }
 node A2 S2  { }
 node B2 S2  { }
 node C2 S2  { }
 edge A2 B2  { invisible yes }
 subgraph S3 { state boxed }
 node A3 S3  { }
 node B3 S3  { }
 node C3 S3  { }
 edge A3 B3  { label connected invisible yes }
 subgraph S4 { state boxed }
 node A4 S4  { invisible yes }
 node B4 S4  { }
 node C4 S4  { }
 edge A4 B4  { }
 near_edge S1 S2 {}
 near_edge S2 S3 {}
 near_edge S3 S4 {}

}}