Skip to content

Commit e34e60e

Browse files
committed
investigate discrepancy further
1 parent fe5fb04 commit e34e60e

File tree

1 file changed

+1
-2
lines changed
  • src/commonMain/kotlin/ai/hypergraph/kaliningraph/automata

1 file changed

+1
-2
lines changed

src/commonMain/kotlin/ai/hypergraph/kaliningraph/automata/FSA.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import kotlin.time.TimeSource
1111
typealias Arc = Π3A<Σᐩ>
1212
typealias TSA = Set<Arc>
1313
fun Arc.pretty() = "$π1 -<$π2>-> $π3"
14-
fun Σᐩ.coords(): Pair<Int, Int> =
15-
(length / 2 - 1).let { substring(2, it + 2).toInt() to substring(it + 3).toInt() }
14+
fun Σᐩ.coords(): Pair<Int, Int> = (length / 2 - 1).let { substring(2, it + 2).toInt() to substring(it + 3).toInt() }
1615
// Triple representing (1) the global index of the state in the LA and the (2) x, (3) y coordinates
1716
typealias STC = Triple<Int, Int, Int>
1817
fun STC.coords() = π2 to π3

0 commit comments

Comments
 (0)