Skip to content

BUG: graph6 format invariant to trailing newline. - #7941

Merged
dschult merged 3 commits into
networkx:mainfrom
rossbar:graph6-bytes-ignore-newline
Apr 1, 2025
Merged

dschult merged 3 commits into
networkx:mainfrom
rossbar:graph6-bytes-ignore-newline

Conversation

@rossbar

@rossbar rossbar commented Mar 27, 2025

Copy link
Copy Markdown
Contributor

Closes #7557

@Peiffap Peiffap 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.

Does it make sense to also remove the "no trailing newline" indication in the docstring (L70)?

@dschult

dschult commented Mar 28, 2025

Copy link
Copy Markdown
Member

Should we test/have the docs describe that a newline should not follow the header?

rossbar and others added 2 commits March 28, 2025 09:35
Co-authored-by: Gilles Peiffer <[email protected]>

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

Looks good! Thanks!

@eriknw eriknw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This seems fine to me, although I only have 5 minutes of familiarity with the graph6 format.

@dschult
dschult merged commit e3542ac into networkx:main Apr 1, 2025
@jarrodmillman jarrodmillman added this to the 3.5 milestone May 29, 2025
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.

nx.from_graph6_bytes could (or should) ignore trailing \n bytes (byte code 10)

5 participants