Skip to content

Add description and keywords support to GEXF reader/writer - #8629

Merged
dschult merged 2 commits into
networkx:mainfrom
KarmanyaGupta1421:fix-for-issue-8624
Apr 23, 2026
Merged

dschult merged 2 commits into
networkx:mainfrom
KarmanyaGupta1421:fix-for-issue-8624

Conversation

@KarmanyaGupta1421

Copy link
Copy Markdown
Contributor

Adds support for reading and writing description and keywords in GEXF metadata.

Also clarifies that NetworkX only supports a single graph per GEXF file.

Fixes #8624

Read and write `description` and `keywords` between graph
attributes and the GEXF meta tag when available.
Document that NetworkX only supports reading and writing
a single graph per GEXF file.

@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 @KarmanyaGupta1421

@dschult
dschult merged commit a0491a7 into networkx:main Apr 23, 2026
44 of 45 checks passed
@dschult dschult added this to the 3.7 milestone Apr 23, 2026
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.

GEXF writer ignores G.graph["description"] in NetworkX 3.6.1

3 participants