-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(graphviz): node- and edge-specific custom attributes #8527
feat(graphviz): node- and edge-specific custom attributes #8527
Conversation
|
An API design consideration we have here is whether we want to merge What do you think? |
|
Pretty fancy graph there! Keeping the separation between "default attributes for every node" and "a function that can be used to override specific nodes" seems like a good separation to me. While I don't love the |
I agree with the need for the separation. What about |
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Niiiiice!
Description of changes
Follow-up to #8510.
Adds support to optionally specifying custom Graphviz node attributes and edge attributes based on arbitrary logic described by user-defined callbacks:
node_attr_callbackandedge_attr_callback.With this, more complex visualization needs can be addressed, such as:
FieldnodesFieldandComparisonnodesConsider the example below.