-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Is there a way to add clusters together with edges? #452
Comments
Not that way. To get this effect you will have to put an See the issue comments:
Also see example below.
from diagrams import Diagram, Cluster, Edge
from diagrams.oci.compute import VM
graph_attr = {
"layout":"dot",
"compound":"true",
"splines":"spline",
}
with Diagram("cluster to cluster edge", graph_attr=graph_attr, show=False) as diag:
with Cluster("Cluster 1"):
c1node1 = VM("c1node1")
with Cluster("Cluster 2"):
c2node1 = VM("c2node1")
c1node1 - Edge(color="red", ltail="cluster_Cluster 1", lhead="cluster_Cluster 2") - c2node1
diag |
there might be a way, eventually, to make a PR that can allow shifting between clusters. Here we see that it's possible to create edges between clusters natively in graphviz https://graphviz.readthedocs.io/en/stable/examples.html#fdpclust-py |
looks like there's a long-running discussion here: #17 |
Example:
The text was updated successfully, but these errors were encountered: