getNodePositions return incorrect positions
simCecca opened this issue · 2 comments
When I call the getNodePositions function, node positions are returned inconsistently with the visualization.
As an example, I took the coordinates and displayed them in Cytoscape, and as you can see, nodes have the same shape, but the ids are in different positions.
Taking the coordinates that the method returns and drawing them on paper, it comes something similar to Cytoscape.
It looks as if the mapping returned by the method returns the correct positions, but reverses the node ids
@simCecca Thanks for reporting this and for creating a Pull Request! I'm going to release a new version soon.
Version 1.1.1 containing this fix has been released and is available on NPM.
Release notes: https://github.com/cosmograph-org/cosmos/releases/tag/1.1.1