-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
read_graphml fails to open graphml file generated by Cytoscape #2197
Comments
Temporary way of getting around the problem: Manually add these variables to the start-tag of the graphml file generated by cytoscape:
i.e. open the graphml file in a text editor, and replace the second line ("< graphml >") with this:
|
Can you provide an example file? |
Here is the content of the graphml file that I exported from Cytoscape 3.4.0 (used cytoscape itself to make a simple 2-node, 2-attribute network with 1 edge):
and then I tried to open it with networkx and got this:
As I explained in previous comment above, if you replace |
* Added graphmlxml class * Allow graphml to read Cytoscape files with incomplete headers Fixes #2197 * graphml pep8 changes * Add a test and some docstring for graphml json unicode treatment addresses #1880 * Change read_graphml and parse_graphml docstring Fixes #1398 * Update LXML writer to include attributes, work with py36 etc. Set LXML as default write_graphml if present. Fixes #448 using code from #1219 * Attempt to get travis to load lxml. * Correct testing both xml and lxml writers in graphml * skip docstring test
networkx.read_graphml fails to import a graphml file generated by Cytoscape returning the following error:
The text was updated successfully, but these errors were encountered: