elm-visualization icon indicating copy to clipboard operation
elm-visualization copied to clipboard

ManyBody crashes if two nodes have exactly the same coordinates

Open erkal opened this issue 7 years ago • 0 comments

to replicate the error, replace in the example the lines

        graph =
            Graph.mapContexts initializeNode miserablesGraph

by

        graph =
            Graph.mapContexts initializeNode miserablesGraph
                |> Graph.update 1 (Maybe.map (updateNode ( 123, 123 )))
                |> Graph.update 2 (Maybe.map (updateNode ( 123, 123 )))

erkal avatar Oct 06 '18 19:10 erkal