-
Notifications
You must be signed in to change notification settings - Fork 247
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
write_graphml rounds float values to 4 decimal digits #45
Comments
tried write_dot, this doesnt round the values.. |
Cannot reproduce on my machne; tried with the following test program:
It works just fine for me. The GraphML writer uses |
Hi Tamas, I am on Ubuntu 14.04 LTS 64 bit |
Did you compile the Python interface of igraph on your own or did you install it from a |
Hi, I installed igraph via pip. The interface version is 0.7.1 |
I'll try to install it soon in a virtual machine and test it. |
Managed to confirm this in an Ubuntu 14.04 VM when installing igraph via |
Okay, it turns out that this has been fixed already in the C core of igraph, but there was no new version released from the C core since the fix. The commit in the source code of the C core is here: igraph/igraph@fdcaa14 . |
Related issue: igraph/igraph#796 |
A workaround for the time being is to convert the floating-point attributes of your graph to strings before you save them, and then convert them back after loading. We'll have to wait until the next bugfix release of the C core to fix this properly. |
node in gml_file:
node
[
id 822
lat 52.5857663
lon 13.4500575
label "278215038"
]
same node in graphml_file (written after being read in though read_GML)
52.5858 13.4501 822 None 278215038The text was updated successfully, but these errors were encountered: