I am using python Graphviz to gennerate a organization chart, the chart is like this:
my code is like this:
Is there any way to merge the lines in the red box ,since they all start from the same node?
I hope it could be like this:
I am using python Graphviz to gennerate a organization chart, the chart is like this:
my code is like this:
Is there any way to merge the lines in the red box ,since they all start from the same node?
I hope it could be like this:
Perhaps concentrate | Graphviz ?
Hi! I have the same need. I saw in the example for the concentrate attribute that it takes one of the labels. In my use case, the edges are generated in a loop and I would like concentrate to add the label information in each iteration. So, at the end of the loop, I would have only one edge and only one label with the concatenation of the label information of all iterations
Graphviz will not combine your edge labels. GVPR could do it, but arguably, the best way is to put this capability in the program that generates your dot input. Do not generate multiple edges from common tail & head, just append labels.
Like so:
digraph a2b {
a -> b [label="first lbl\nsecond lbl\nthird label\nvery last label"]
c -> c [label="lbl 100\nlbl 102\nlabel 98765\nvery last label"]
}
Giving:
I see, my code was written for one single object type and now I need to join all different object types in one graph, being each object type a subgraph. That is why I have more than one edge (for each object type) connecting the same nodes (which represent activities). My input for the graph is a dictionary where the object types are the keys and the associated value is a tuple of two pandas dataframes, the nodes and the edges. I don’t know the best way to deal with this in Graphviz. I saw that I can have layers but I am still reading about it to see if it is applicable in my use case, because I need to enable object types selection for the user to be presented in the graph.
But anyway, I would like to represent only one edge connecting two nodes, still presenting all labels because they contain some metrics that I need to present.
How would you want your result to differ from a->b above?
Could you provide an example image?