Skip to content

Add GEXF 1.3 to the recognized GEXF versions - #8196

Merged
MridulS merged 3 commits into
networkx:mainfrom
rossbar:gh-8040
Aug 22, 2025
Merged

MridulS merged 3 commits into
networkx:mainfrom
rossbar:gh-8040

Conversation

@rossbar

@rossbar rossbar commented Aug 14, 2025 •

Copy link
Copy Markdown
Contributor

Closes #8040 #7972

I went ahead and tried read_gexf using the Example Graphs from the GEXF schema page and indeed they weren't working for v1.3. Fortunately the "fix" is just to add the version info to the GEXFReader. One thing to note - GEXF files prior to v1.3 appear to have www. prepended to all the schema URL's whereas v1.3 (at least the examples) do not. This may need more explicit handling depending on whether this change is intentional or not, but let's cross that bridge when (if) we come to it.

@dschult dschult left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!
Thanks @rossbar!

@MridulS
MridulS merged commit 7565158 into networkx:main Aug 22, 2025
alfred-mikhael pushed a commit to alfred-mikhael/networkx that referenced this pull request Sep 3, 2025
* Add test for gexf v1.3 format spec.

* Expand test to include 'default' version.

* Add 1.3 to recognized gexf versions.

NOTE: URLs for 1.3 do not prepend www.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Reading GEXF1.3-Files

3 participants