Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getNodePositions return incorrect positions #9

Closed
simCecca opened this issue Oct 7, 2022 · 2 comments
Closed

getNodePositions return incorrect positions #9

simCecca opened this issue Oct 7, 2022 · 2 comments

Comments

@simCecca
Copy link
Contributor

simCecca commented Oct 7, 2022

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

Screenshot 2022-10-07 at 18 03 32

Stukova added a commit to simCecca/cosmos that referenced this issue Oct 11, 2022
+ getNodePositions, getNodePositionsMap minor tweak
cosmograph-org#9
rokotyan added a commit that referenced this issue Oct 11, 2022
Issue #9 - Get positions returned correct positions, but associated with wrong ids
@rokotyan
Copy link
Member

@simCecca Thanks for reporting this and for creating a Pull Request! I'm going to release a new version soon.

@rokotyan
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants