Repository navigation
Add GEXF 1.3 to the recognized GEXF versions - #8196
Merged
Merged
Conversation
NOTE: URLs for 1.3 do not prepend www.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #8040 #7972
I went ahead and tried
read_gexfusing 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 theGEXFReader. One thing to note - GEXF files prior to v1.3 appear to havewww.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.