This is an implementation of a Wei Luo's paper - Visual analytics of geo‐social interaction patterns for epidemic control using d3

Legend
S
E
I
F
R

Source: dataset A network can be represented by an adjacency matrix, where each cell ij represents an edge from vertex i to vertex j. Here, vertices represent students/teachers, while edges represent contact. Given this two-dimensional representation of a graph, a natural visualization is to show the matrix! However, the effectiveness of a matrix diagram is heavily dependent on the order of rows and columns: if related nodes are placed closed to each other, it is easier to identify clusters and bridges. The multiple ordering algorithms are provided by the library Reorder.js.