This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo's Les Misérables, compiled by Donald Knuth.
Compare this display to a force layout with curved links, a force layout with fisheye distortion and a matrix diagram.
Hi ,
I am getting error in this part of code :
simulation
.nodes(graph.nodes)
.on('tick', ticked);
error states : "Argument of type 'Node[]' is not assignable to parameter of type 'SimulationNodeDatum[]'.
Type 'Node' has no properties in common with type 'SimulationNodeDatum'."
I am using versions:
"@types/d3": "^4.10.0",
"d3": "^4.10.2"
Can anyone help me with this issue?