Skip to main content
100%

Matrix diagram

✓ Published0🌍 Public
ZZoeLeBlanc
Last edited Apr 4, 2018
Created on Apr 2, 2018

This matrix diagram visualizes co-occurrence relationships among characters from Les Misérables, with rows and columns ordered and colored by community structure identified through Louvain modularity. Each cell’s color intensity reflects the frequency of character interactions, while light gray indicates no interaction. Rendered as an SVG using D3 v4, the diagram groups characters into colored communities along both axes, making clustered relationships readily apparent. Compared to node-link diagrams, which often become unreadable "hairballs" in dense networks, the matrix format is simpler and easier to scan—though its readability depends heavily on the ordering of rows and columns, and tracing multi-step paths between nodes is difficult. With very large graphs, fitting hundreds or thousands of labeled rows and columns on screen becomes a challenge. The data come from a JSON file of academic alumni, with nodes representing people and departments, edges representing affiliations, and communities determined by Louvain modularity.

AI-generated description

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 <a href='http://bl.ocks.org/rpgove/'>rpgove</a>'s block: <a href='http://bl.ocks.org/rpgove/bf44631829eaa6512518005697649cb4'>Matrix diagram</a>

gpl-3.0 Licensed

Similar vizzes