|
202 | 202 | /*
|
203 | 203 | * Uncomment (or use -DTRGM_REGEXP_DEBUG) to print debug info,
|
204 | 204 | * for exploring and debugging the algorithm implementation.
|
205 |
| - * This produces three graph files in /tmp, in Graphviz .dot format. |
| 205 | + * This produces three graph files in /tmp, in Graphviz .gv format. |
206 | 206 | * Some progress information is also printed to postmaster stderr.
|
207 | 207 | */
|
208 | 208 | /* #define TRGM_REGEXP_DEBUG */
|
@@ -2187,8 +2187,8 @@ printSourceNFA(regex_t *regex, TrgmColorInfo *colors, int ncolors)
|
2187 | 2187 | appendStringInfoString(&buf, "}\n");
|
2188 | 2188 |
|
2189 | 2189 | {
|
2190 |
| - /* dot -Tpng -o /tmp/source.png < /tmp/source.dot */ |
2191 |
| - FILE *fp = fopen("/tmp/source.dot", "w"); |
| 2190 | + /* dot -Tpng -o /tmp/source.png < /tmp/source.gv */ |
| 2191 | + FILE *fp = fopen("/tmp/source.gv", "w"); |
2192 | 2192 |
|
2193 | 2193 | fprintf(fp, "%s", buf.data);
|
2194 | 2194 | fclose(fp);
|
@@ -2249,8 +2249,8 @@ printTrgmNFA(TrgmNFA *trgmNFA)
|
2249 | 2249 | appendStringInfoString(&buf, "}\n");
|
2250 | 2250 |
|
2251 | 2251 | {
|
2252 |
| - /* dot -Tpng -o /tmp/transformed.png < /tmp/transformed.dot */ |
2253 |
| - FILE *fp = fopen("/tmp/transformed.dot", "w"); |
| 2252 | + /* dot -Tpng -o /tmp/transformed.png < /tmp/transformed.gv */ |
| 2253 | + FILE *fp = fopen("/tmp/transformed.gv", "w"); |
2254 | 2254 |
|
2255 | 2255 | fprintf(fp, "%s", buf.data);
|
2256 | 2256 | fclose(fp);
|
@@ -2340,8 +2340,8 @@ printTrgmPackedGraph(TrgmPackedGraph *packedGraph, TRGM *trigrams)
|
2340 | 2340 | appendStringInfoString(&buf, "}\n");
|
2341 | 2341 |
|
2342 | 2342 | {
|
2343 |
| - /* dot -Tpng -o /tmp/packed.png < /tmp/packed.dot */ |
2344 |
| - FILE *fp = fopen("/tmp/packed.dot", "w"); |
| 2343 | + /* dot -Tpng -o /tmp/packed.png < /tmp/packed.gv */ |
| 2344 | + FILE *fp = fopen("/tmp/packed.gv", "w"); |
2345 | 2345 |
|
2346 | 2346 | fprintf(fp, "%s", buf.data);
|
2347 | 2347 | fclose(fp);
|
|
0 commit comments