Skip to content

Instantly share code, notes, and snippets.

@banyudu
Last active May 29, 2019 07:22
Show Gist options
  • Save banyudu/2354678ea28bee90b65aac732819eaee to your computer and use it in GitHub Desktop.
Save banyudu/2354678ea28bee90b65aac732819eaee to your computer and use it in GitHub Desktop.
Graphviz file for backend/frontend/mobile projects
digraph G {
rankdir=TB;
subgraph cluster_0 {
label = "backend";
color = black;
style= "dotted";
backend_v1_1 [label="v1.1" color="grey"];
backend_v1_2 [label="v1.2" color="grey"];
backend_master [label="master" color="grey" style="filled"];
backend_feature_a [label="A" color="coral2" style="filled"];
backend_feature_b [label="B" color="deepskyblue2" style="filled"];
backend_branches [label="branches"];
backend_tags [label="tags"];
backend_branches -> backend_master;
backend_branches -> backend_feature_a;
backend_branches -> backend_feature_b;
backend_tags -> backend_v1_1;
backend_tags -> backend_v1_2;
middle_backend[style="invis" label="."]
middle_backend -> backend_branches[style="invis"];
}
subgraph cluster_1 {
label = "frontend";
color = black;
style= "dotted";
frontend_v1_1 [label="v1.1" color="grey"];
frontend_v1_2 [label="v1.2" color="grey"];
frontend_master [label="master" color="grey" style="filled"];
frontend_feature_a [label="A" color="coral2" style="filled"];
frontend_branches [label="branches"];
frontend_tags [label="tags"];
frontend_branches -> frontend_master;
frontend_branches -> frontend_feature_a;
frontend_tags -> frontend_v1_1;
frontend_tags -> frontend_v1_2;
middle_frontend[style="invis" label="."]
middle_frontend -> frontend_branches[style="invis"];
}
subgraph cluster_2 {
label = "mobile";
color = black;
style= "dotted";
mobile_v1_1 [label="v1.1" color="grey"];
mobile_v1_2 [label="v1.2" color="grey"];
mobile_master [label="master" color="grey" style="filled"];
mobile_feature_b [label="B" color="deepskyblue2" style="filled"];
mobile_branches [label="branches"];
mobile_tags [label="tags"];
mobile_branches -> mobile_master;
mobile_branches -> mobile_feature_b;
mobile_tags -> mobile_v1_1;
mobile_tags -> mobile_v1_2;
middle_mobile[style="invis" label="."]
middle_mobile -> mobile_branches[style="invis"];
}
edge[constraint=false];
backend_branches -> frontend_branches [style="invis"];
frontend_branches -> mobile_branches [style="invis"];
backend_tags -> frontend_tags [style="invis"];
frontend_tags -> mobile_tags [style="invis"];
}
@banyudu
Copy link
Author

banyudu commented May 29, 2019

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment