chiark / gitweb /
include distances
authorian <ian>
Sun, 20 Mar 2005 18:56:26 +0000 (18:56 +0000)
committerian <ian>
Sun, 20 Mar 2005 18:56:26 +0000 (18:56 +0000)
layout/redactgraph.c

index dcd5bd783014345f7a4994f8a067f98ec92c9b1d..dfb08f8f921b0f8c16c42f84fc9dab524a0cea7b 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * output format from printforforsafety is lines like this:
- *   segment <node>.<side> <node>.<side> <segment>[/<movinfo>]
+ *   segment <node>.<side> <node>.<side> <segment>[/<movinfo>] <distance>
  *   #...         (comment)
  *                (blank)
  *   end          (at end of file, mandatory)
@@ -11,6 +11,7 @@
  *   <movinfo> is  <movfeat><movpos>[<movfeat><movpos>...]*<combpos>
  *            where <movfeat> is alphabetic and <movpos> is and
  *            <combpos> are in decimal and have no unnecessary leading 0's
+ *   <distance> contains only digits and perhaps decimal point
  * semantic restrictions (not enforced by redactgraph but ought to
  * be impossible for layout designer to violate):
  *   Each <segment>[/<movinfo>] appears exactly once.
@@ -715,7 +716,7 @@ static void printforforsafety(void) {
        }
        output("*%d", edge->movpos);
       }
-      output("\n");
+      output(" %f\n", edge->distance);
     }
   }
   output("end\n");