I don’t quite understand how this:
digraph test_application {
rankdir=LR;
size="6,5"
node[shape = square]; "Server1 (2 hr)" "Server2 (2 hr)" "Server3 (72 hr)" "Server4 (2 hr)"
node[shape = triangle]; "Storage (48 hr)" "Network (0 hr)"
node[shape = circle];
"Mitre (24 hr)" -> "NSM (48 hr)" [label = "Depends on",color=red, penwidth=3.0 ];
"Mitre (24 hr)" -> "Server2 (2 hr)" [label = "Runs on",color=blue, penwidth=1.0 ];
"Mitre (24 hr)" -> "Server3 (72 hr)" [label = "Runs on",color=red, penwidth=3.0 ];
"Regdata (24 hr)" -> "Storage (48 hr)" [label = "Depends on",color=blue, penwidth=1.0 ];
"Regdata (24 hr)" -> "Network (0 hr)" [label = "Depends on",color=blue, penwidth=1.0 ];
"Regdata (24 hr)" -> "NSM (48 hr)" [label = "Depends on",color=red, penwidth=3.0 ];
"Regdata (24 hr)" -> "Server4 (2 hr)" [label = "Runs on 24|2",color=blue, penwidth=1.0 ];
"Regdata (24 hr)" -> "Server1 (2 hr)" [label = "Runs on",color=blue, penwidth=1.0 ];
"NSM (48 hr)" -> "Server4 (2 hr)" [label = "Runs on",color=blue, penwidth=1.0 ];
"NSM (48 hr)" -> "Regdata (24 hr)" [label = "Sends data to",color=blue, penwidth=1.0 ];
}
[dot]
digraph test_application {
rankdir=LR;
size=“6,5”
node[shape = square]; “Server1 (2 hr)” “Server2 (2 hr)” “Server3 (72 hr)” “Server4 (2 hr)”
node[shape = triangle]; “Storage (48 hr)” “Network (0 hr)”
node[shape = circle];
“Mitre (24 hr)” → “NSM (48 hr)” [label = “Depends on”,color=red, penwidth=3.0 ];
“Mitre (24 hr)” → “Server2 (2 hr)” [label = “Runs on”,color=blue, penwidth=1.0 ];
“Mitre (24 hr)” → “Server3 (72 hr)” [label = “Runs on”,color=red, penwidth=3.0 ];
“Regdata (24 hr)” → “Storage (48 hr)” [label = “Depends on”,color=blue, penwidth=1.0 ];
“Regdata (24 hr)” → “Network (0 hr)” [label = “Depends on”,color=blue, penwidth=1.0 ];
“Regdata (24 hr)” → “NSM (48 hr)” [label = “Depends on”,color=red, penwidth=3.0 ];
“Regdata (24 hr)” → “Server4 (2 hr)” [label = “Runs on 24|2”,color=blue, penwidth=1.0 ];
“Regdata (24 hr)” → “Server1 (2 hr)” [label = “Runs on”,color=blue, penwidth=1.0 ];
“NSM (48 hr)” → “Server4 (2 hr)” [label = “Runs on”,color=blue, penwidth=1.0 ];
“NSM (48 hr)” → “Regdata (24 hr)” [label = “Sends data to”,color=blue, penwidth=1.0 ];
}
[/dot]
is different from this:
digraph test_application {
rankdir=LR;
size="6,5"
"Mitre (24 hr)" [shape = circle, label = "Mitre (24 hr)"];
"Regdata (24 hr)" [shape = circle, label = "Regdata (24 hr)"];
"NSM (48 hr)" [shape = circle, label = "NSM (48 hr)"];
"Storage (48 hr)" [shape = triangle, label = "Storage (48 hr)"];
"Network (0 hr)" [shape = triangle, label = "Network (0 hr)"];
"Server1 (2 hr)" [shape = square, label = "Server1 (2 hr)"];
"Server2 (2 hr)" [shape = square, label = "Server2 (2 hr)"];
"Server3 (72 hr)" [shape = square, label = "Server3 (72 hr)"];
"Server4 (2 hr)" [shape = square, label = "Server4 (2 hr)"];
"Mitre (24 hr)" -> "NSM (48 hr)" [label = "Depends on",color=green, penwidth=1];
"Mitre (24 hr)" -> "Server2 (2 hr)" [label = "Runs on",color=red, penwidth=3];
"Mitre (24 hr)" -> "Server3 (72 hr)" [label = "Runs on",color=green, penwidth=1];
"Regdata (24 hr)" -> "Storage (48 hr)" [label = "Depends on",color=green, penwidth=1];
"Regdata (24 hr)" -> "Network (0 hr)" [label = "Depends on",color=red, penwidth=3];
"Regdata (24 hr)" -> "NSM (48 hr)" [label = "Depends on",color=green, penwidth=1];
"Regdata (24 hr)" -> "Server1 (2 hr)" [label = "Runs on",color=red, penwidth=3];
"Regdata (24 hr)" -> "Server4 (2 hr)" [label = "Runs on",color=red, penwidth=3];
"NSM (48 hr)" -> "Server4 (2 hr)" [label = "Runs on",color=red, penwidth=3];
"NSM (48 hr)" -> "Regdata (24 hr)" [label = "Sends data to",color=red, penwidth=3];
}
[dot]
digraph test_application {
rankdir=LR;
size=“6,5”
“Mitre (24 hr)” [shape = circle, label = “Mitre (24 hr)”];
“Regdata (24 hr)” [shape = circle, label = “Regdata (24 hr)”];
“NSM (48 hr)” [shape = circle, label = “NSM (48 hr)”];
“Storage (48 hr)” [shape = triangle, label = “Storage (48 hr)”];
“Network (0 hr)” [shape = triangle, label = “Network (0 hr)”];
“Server1 (2 hr)” [shape = square, label = “Server1 (2 hr)”];
“Server2 (2 hr)” [shape = square, label = “Server2 (2 hr)”];
“Server3 (72 hr)” [shape = square, label = “Server3 (72 hr)”];
“Server4 (2 hr)” [shape = square, label = “Server4 (2 hr)”];
“Mitre (24 hr)” → “NSM (48 hr)” [label = “Depends on”,color=green, penwidth=1];
“Mitre (24 hr)” → “Server2 (2 hr)” [label = “Runs on”,color=red, penwidth=3];
“Mitre (24 hr)” → “Server3 (72 hr)” [label = “Runs on”,color=green, penwidth=1];
“Regdata (24 hr)” → “Storage (48 hr)” [label = “Depends on”,color=green, penwidth=1];
“Regdata (24 hr)” → “Network (0 hr)” [label = “Depends on”,color=red, penwidth=3];
“Regdata (24 hr)” → “NSM (48 hr)” [label = “Depends on”,color=green, penwidth=1];
“Regdata (24 hr)” → “Server1 (2 hr)” [label = “Runs on”,color=red, penwidth=3];
“Regdata (24 hr)” → “Server4 (2 hr)” [label = “Runs on”,color=red, penwidth=3];
“NSM (48 hr)” → “Server4 (2 hr)” [label = “Runs on”,color=red, penwidth=3];
“NSM (48 hr)” → “Regdata (24 hr)” [label = “Sends data to”,color=red, penwidth=3];
}
[/dot]
The only difference between those 2 graphs is a layout of nodes and I have noticed that by swapping where I’m specifying the shape of nodes tends to change the layout.
Why is there no consistent way of displaying the same information and if there is,how do I achieve it?
P.S. I’m very new to it and trying to automate the process, so it’s not ideal to write the code manually, but if there isn’t a choice I’d be very happy to hear any kind of suggestions on how to fix it.