Debian Codegraph @

tests/2639.gvpr

raw
1 /// @file
2 /// @brief supporting GVPR program for test_2639
3
4 BEG_G {
5 graph_t aG1, aG2;
6
7 aG1 = isSubg($G, "SUB1");
8 aG2 = isSubg(aG1, "SPOON");
9
10 // set defaults for SPOON subgraph
11 setDflt(aG2, "N", "color", "red"); // should only apply to SPOON
12 setDflt(aG2, "N", "shape", "circle"); // should only apply to SPOON
13
14 // set defaults for FORK subgraph
15 aG2 = isSubg(aG1, "FORK");
16 setDflt(aG2, "N", "color", "blue"); // should only apply to FORK
17 setDflt(aG2, "N", "shape", "square"); // should only apply to FORK
18 setDflt(aG2, "N", "color", "purple"); // override color, purple, not blue
19 }