src/Pure/General/graph.scala
changeset 76840 893eeef9ef08
parent 75394 42267c650205
child 78235 aece9a063271
--- a/src/Pure/General/graph.scala	Sat Dec 31 11:35:28 2022 +0100
+++ b/src/Pure/General/graph.scala	Sat Dec 31 11:48:32 2022 +0100
@@ -27,7 +27,7 @@
 
   def make[Key, A](
     entries: List[((Key, A), List[Key])],
-    symmetric: Boolean = false)(
+    converse: Boolean = false)(
     implicit ord: Ordering[Key]
   ): Graph[Key, A] = {
     val graph1 =
@@ -38,7 +38,7 @@
       entries.foldLeft(graph1) {
         case (graph, ((x, _), ys)) =>
           ys.foldLeft(graph) {
-            case (g, y) => if (symmetric) g.add_edge(y, x) else g.add_edge(x, y)
+            case (g, y) => if (converse) g.add_edge(y, x) else g.add_edge(x, y)
           }
       }
     graph2