From c4f926438dcb8abe805e910399940f79ff643c4b Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Thu, 14 Sep 2017 15:39:41 -0500 Subject: Add files via upload --- sourcecodes/k-best/src/graph.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sourcecodes/k-best/src/graph.sh (limited to 'sourcecodes/k-best/src/graph.sh') diff --git a/sourcecodes/k-best/src/graph.sh b/sourcecodes/k-best/src/graph.sh new file mode 100644 index 00000000..12967360 --- /dev/null +++ b/sourcecodes/k-best/src/graph.sh @@ -0,0 +1,13 @@ +#!/bin/bash +k=10 +rdir=./../iris3/resdir +for (( i = 0 ; i < k; i++ )) +do +#if which dot > /dev/null; then + ${rdir}/../../src/net2parents ${rdir}/${i}net ${rdir}/${i}parent \ + | ${rdir}/../../src/parents2arcs ${rdir}/${i}parent ${rdir}/${i}arc \ + | ${rdir}/../../src/arcs2dot ${rdir}/../iris.vd ${rdir}/${i}arc ${rdir}/dot_$i \ + | dot ${rdir}/dot_$i -Tps -o ${rdir}/dot_res_${i}.ps + echo See $d/resdir/iris.ps for a postscript picture of the net. +#fi +done \ No newline at end of file -- cgit 1.4.1