Gist fd8a31ea3830d17cacb585fc7313b388
✓ Published0🌍 Public
CCliffordAnderson
Last edited May 11, 2018
Created on May 11, 2018
This example visualizes the character relationships and scene structure of Shakespeare’s *Hamlet* as a directed network graph. It shows how characters connect across acts and scenes, with nodes representing acts, scenes, and characters, and edges indicating their narrative co-occurrence. The visualization uses a force-directed layout, likely implemented with `d3.forceSimulation`, to position nodes, while the GraphML data is parsed to build the graph. Scene and act nodes are color-coded and labeled by their act/scene numbers, and character nodes carry names, revealing the play’s structural flow. The rendering relies on a browser-based SVG or Canvas context, with the underlying data sourced from the included `ham-graphml.xml` file.
AI-generated description