A matrix diagram of Les Miserables characters colored and ordered by their communities (determined using Louvain modularity). Darker colors indicate more interactions between characters, and light gray cells indicate no interaction.
In comparison with node-link diagrams, which can become inscrutable hairballs with dense networks, matrix diagrams can be simpler and easier to read. However, this is highly dependent on the row and column ordering, and it is difficult to follow paths connecting nodes. Furthermore, a matrix diagram of a graph with hundreds or thousands of nodes can be difficult to fit on one screen and still be able to read the row and column labels.
forked from rpgove's block: Matrix diagram
forked from ZoeLeBlanc's block: Matrix diagram
https://d3js.org/d3.v4.min.js