Crude demo of a 'layered' force-layout graph.
Run flip()
in JS console to switch layers. (You need to change the context fo the chrom dev console to the right iframe first, or use window.frames[0].flip()
)
This uses the character co-occurence in Les Misérables dataset from the canonical D3 force-layout demo.
The choice of what's in what layer is just based on even/odd-numbered node index. This selection mechanism, and the fact that the graph is very dense, means this might not be the most appropriate dataset to demo the 'layering', but hopefully it gives some hint of its potential.
The intent is that slightly different force-layout rules apply to different layers, giving them structural focus as well as visual.