This undirected network contains co-occurrences of characters in Victor Hugo’s novel, Les Misérables.
A node represents a character, and an edge between two nodes shows that these two characters appeared in the same chapter of the book.
nodes <- jsonlite::fromJSON("https://raw.githubusercontent.com/datastorm-open/datastorm-open.github.io/master/visNetwork/data/nodes_miserables.json")
edges <- jsonlite::fromJSON("https://raw.githubusercontent.com/datastorm-open/datastorm-open.github.io/master/visNetwork/data/edges_miserables.json")
visNetwork(nodes, edges, height = "800px", width = "90%", style = "font-family:Comic Sans MS; font-size:30px") %>%
visNodes(font = list(size = 22)) %>%
visOptions(selectedBy = "group",
highlightNearest = TRUE,
nodesIdSelection = TRUE) %>%
visPhysics(forceAtlas2Based = list(gravitationalConstant = -100))References
Knuth, D. E. (1993) „Les miserables: coappearance network of characters in the novel les miserables“, The Stanford GraphBase: A Platform for Combinatorial Computing, Addison-Wesley, Reading, MA