author | wenzelm |
Sat, 09 Apr 2022 11:41:37 +0200 | |
changeset 75422 | 6c3190da9701 |
parent 75421 | 3c710067b178 |
child 75423 | d164bf04d05e |
--- a/src/Tools/Graphview/layout.scala Fri Apr 08 16:42:52 2022 +0200 +++ b/src/Tools/Graphview/layout.scala Sat Apr 09 11:41:37 2022 +0200 @@ -235,7 +235,7 @@ } private def count_crossings(graph: Graph, levels: List[Level]): Int = - levels.iterator.sliding(2).map { + levels.iterator.sliding(2).map(_.toList).map { case List(top, bot) => top.iterator.zipWithIndex.map { case (outer_parent, outer_parent_index) =>