blob: 1e903a137f1385ca5220229c3b133b1c3045280a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
diff --git a/src/graph.c b/src/graph.c
index c63fdf9c..91f5c990 100644
--- a/src/graph.c
+++ b/src/graph.c
@@ -366,7 +366,13 @@ void dump_graph(void) {
/* now dump all edges */
for(node = edge_weight_tree->head; node; node = node->next) {
e = node->data;
- fprintf(file, " \"%s\" -> \"%s\";\n", e->from->name, e->to->name);
+ if (e->reverse) {
+ if (e->reverse > e)
+ fprintf(file, " \"%s\" -> \"%s\" [dir=both];\n", e->from->name, e->to->name);
+ }
+ else {
+ fprintf(file, " \"%s\" -> \"%s\";\n", e->from->name, e->to->name);
+ }
}
fprintf(file, "}\n");
|