We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there a way to set global attributes for nodes and edges?
I want to do something like this
digraph G { node [style = filled]; edge [color = "red"]; ... }
The text was updated successfully, but these errors were encountered:
I found that you can set them using Graph.Attr method https://github.com/goccy/go-graphviz/blob/master/cgraph/cgraph.go#L1127
Graph.Attr
The first argument of type int is to specify if you want to apply the attributes to graph, node or edge
int
graph
node
edge
I suggest to define the kind as a new type
ex:
type Kind int const ( KindGraph Kind = iota KindNode KindEdge )
Also add documentation to Graph.Attr
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Is there a way to set global attributes for nodes and edges?
I want to do something like this
The text was updated successfully, but these errors were encountered: