-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unable to import a large file (?) #1841
Comments
Can you share your file (or a minimal example file) for reproducing the problem? |
I think the editor does not support uploading file formats .graphml and .gexf (?) I am sharing the Dropbox links for those files : https://www.dropbox.com/s/lhztjls2o5tusnd/networkx_gexf.gexf?dl=0 -- this would be the file containing the node color information and would not open Thanks in advance for help! |
Thanks, I will check them when possible. Uploading the files as zip here |
If it helps: I get the following exception thrown when I try to upload the large network - java.lang.IllegalArgumentException: The id can't be empty |
Short update: |
I figured out the solution to this problem: I opened the .graphml file that I obtained from python in Cytoscape, then without modifying I exported .graphml from Cytoscape to Gephi and now I am able to visualize the network. |
I don't think the large file size is so much the problem, as the file type. I import CSV files of thousands of nodes and over 100000 edges, not that Gephi is happy about excessive numbers of edges, but CSV seems to be a Gephi-friendly file type. |
what is the graph size limitations for Gephi ? |
You could try to use networkx.write_gml instead of .write_graphml, this worked for me after I was having a similiar problem! |
So let me once again explain my problem and a strange solution that seemed
to work:
Problem: I construct a network in python using networkx. Store the network
and export in graphml format (say py.graphml). This file does not open in
Gephi.
Solution: I open the file (py.graphml) in cytoscape, export the file again
from cytoscape in a graphml format(new file, say cy.graphml) and then open
it in Gephi.
Voila! It works!
…On Thu, Dec 13, 2018, 5:20 PM graemediack ***@***.*** wrote:
You could try to use networkx.write_gml instead of .write_graphml, this
worked for me after I was having a similiar problem!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1841 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AYjH8HU-6Ajvdg0N3IKVhUFiA3329wP2ks5u4j8PgaJpZM4QeLAo>
.
|
This issue has been fixed and will be included in the upcoming 0.9.3 release. Thank you for the report! The root cause was because of a node id being a whitespace " " in your file example. As long as the id is not empty it should work but we had a bug that was trimming the id and therefore it would be empty. |
I have imported a large network in python (1000+ nodes and about 10000+ edges), I have processed it with networkx package and have exported the data in a '.graphml' file (file size ~4 MB). This file also contains information on color of nodes that are present in my network(as it is absolutely essential for me to be able to distinguish between some nodes).
When I try to open this file using Gephi, the screen does not show anything after I select the file i.e File -> Open -> My_Graphml_file.graphml , following which I do not get a thing in all the three tabs.
Surprisingly, even if I try to import some other file which does not have any color information and about the same size as the one I described above, it still does not show a thing in all the three tabs. But, if I try to import file with small size, I get something on my screen to work with.
So is it the size problem and if it is then how do I solve it?
The text was updated successfully, but these errors were encountered: