3 ms·
Right! That kind of crosscutting thing is tricky to do with the hierarchical nature of subgraphs. Without some kind of macro preprocessor you'd end up doing s
by kragen 6y ago
Right! That kind of crosscutting thing is tricky to do with the hierarchical nature of subgraphs. Without some kind of macro preprocessor you'd end up doing something like
node [width=1.75, height=1.0, fontname="Menlo"];
subgraph files {
node [shape=note];
tarball [label="foo.tar"];
subgraph importantfiles {
node [fontname="Menlo Italic"];
...
}
}
subgraph dirs {
node [shape=folder];
vardir [label="/var"];
subgraph importantdirs {
node [fontname="Menlo Italic"];
etcdir [label="/etc"];
}
}
This obviously has the drawback that if you change the importance font, you have to change it twice instead of once, and you might forget. And clearly there are cases where that kind of duplication is a bigger problem than the difficulties with m4.