gampleman / elm-visualization

A data visualization library for Elm

Home Page:http://package.elm-lang.org/packages/gampleman/elm-visualization/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ManyBody crashes if two nodes have exactly the same coordinates

erkal opened this issue · 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 )))