-
Notifications
You must be signed in to change notification settings - Fork 8
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
Loses positions of nodes #15
Comments
AFAIK, graphml format doesn't include a separate structure or keyword for the position information. It is also given as a data element, so extension stores that information in node's data field. Position information can be reached from node's data field after import. In my opinion, estimating position information from a data element and assigning it directly to the node's position field is not so convenient. Because, user may define position information with different names. (In the above file, it is x and y, but in another file it can be xPos and yPos.) |
@hasanbalci Does this extension recognize any of these ways to specify location? Can we perhaps make it recognize some commonly accepted location and dimension specification keywords? |
No, it doesn't recognize. But maybe we can specify 'x' and 'y' for the position and 'width' and 'height' for the dimension. |
@JustDoIt1999 Could you please work on this and modify this extension to recognize 'x', 'y', 'width', and 'height'? |
@ugurdogrusoz of course |
A node in my graphml looks like this
I am interested in the nodes position x and y. Since position cannot be recognized by the library, Can you guide me how can I access that manually? @PermanAtayev |
You can access it as follows: |
I already tried this but it returns NaN for both values.
|
This type of graphml is not supported by the extension, please use the format I provided for this issue. |
For the graph below with the layout option "preset" initial positions of the nodes are lost
The text was updated successfully, but these errors were encountered: