]> gitweb.factorcode.org Git - factor.git/commitdiff
graphs: using conjoin.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 30 Oct 2014 18:30:21 +0000 (11:30 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 30 Oct 2014 18:30:21 +0000 (11:30 -0700)
basis/graphs/graphs.factor

index a1ab6c5dc3b0c61ab03fd35fc36d5d4153a4c135..ce561d96c97584e289c7fefbb2777815c2ae7c0e 100644 (file)
@@ -14,7 +14,7 @@ IN: graphs
 PRIVATE>
 
 : add-vertex ( vertex edges graph -- )
-    [ [ nest dupd set-at ] curry with each ] if-graph ; inline
+    [ [ nest conjoin ] curry with each ] if-graph ; inline
 
 : add-vertex* ( vertex edges graph -- )
     [