Skip to content

Add LowerHex and UpperHex impls for Dot#687

Merged
ABorgna merged 1 commit intopetgraph:masterfrom
toolCHAINZ:master
Dec 1, 2024
Merged

Add LowerHex and UpperHex impls for Dot#687
ABorgna merged 1 commit intopetgraph:masterfrom
toolCHAINZ:master

Conversation

@toolCHAINZ
Copy link
Copy Markdown
Contributor

Hello!

Thank you for this library, it's very nice!

I'm using petgraph to represent some data with numeric edge and node weights. I'm sometimes using the Dot struct to display these graphs, and would like to be able to use {:x} and {:X} formatting for node and edge labels.

This PR just implements LowerHex and UpperHex on Dot in the style of the existing Display and Debug implementations.

@ABorgna ABorgna merged commit 872f163 into petgraph:master Dec 1, 2024
@renovate renovate Bot mentioned this pull request Feb 3, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants