Revision 2163 tmp/org.txm.groovy.core/src/groovy/org/txm/macro/prototypes/commands/CoocRecMacro.groovy

CoocRecMacro.groovy (revision 2163)
90 90
		
91 91
		
92 92
		if (right_dir) {
93
			def pivot = pivots[0]
93
			def pivot = pivots[-1]
94 94
			println "$level\"$pivot\" -> \"$word\"	[label=\"${words[word].score}\",fontsize=$size,weight=${words[word].score}];"
95 95
			if (ensure_transitive) new_pivots.addAll(pivots)
96 96
			new_pivots << word
97 97
		} else { 
98
			def pivot = pivots[-1]
98
			def pivot = pivots[0]
99 99
			println "$level\"$word\" -> \"$pivot\"	[label=\"${words[word].score}\",fontsize=$size,weight=${words[word].score}];"
100 100
			
101 101
			new_pivots << word

Also available in: Unified diff