At a high level, layers allows you to define a set of graphs where node and edge positioning stays constant but individual nodes and edges may not be visible in any graph within the set. (whew, the Graphviz documentation explains this better)
While Graphviz’s SVG output supports layers as best it can, SVG only shows you the “first” graph/layer (think of it as the graph on the top page of a stack of pages).
I’ve dusted off some javascript that in theory can be added to any SVG output file that contains layers to add the ability to see each layer, one-at-a-time.
Three examples:
https://cdn.statically.io/gist/steveroush/23478aefac88d1f15e10529202ff4832/raw/58d980330904c46cb71a016f5ab6819c8970e3da/Layer3.svg
https://cdn.statically.io/gist/steveroush/aedb1c04acddc1311b2d8d4bd72d4e46/raw/e4e08dca72b0cc4a1e5d7414c69d051f761572e1/unixLayers.svg
https://cdn.statically.io/gist/steveroush/3ca7a088b8bc08eb6ab09e6d10e7d36d/raw/ba5491b66dcd0b7bda15d0c63e61dd42b5d9b482/SLshow.svg
Questions:
-
Does anybody care?
-
Is there a better user interface
-
What features are missing?
My javascript skill is mediocre (at best) and antiquated, so improvements are appreciated.