Skip to content

Commit c0d14bb

Browse files
committed
2023d23 loom
1 parent 6b35c6b commit c0d14bb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

notebooks/y2024/d23.clj

+4-3
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,12 @@ td-yn")
8686

8787
(def test-graph (graph/graph (computers->connections test-input)))
8888

89-
; Med grafen i hånd kan vi hente ut "maximal cliques":
89+
; Med grafen vi fant i del 1 kan vi hente ut "maximal cliques":
9090

9191
(def test-cliques (loom-alg/maximal-cliques test-graph))
9292

93+
test-cliques
94+
9395
; Ingen garanti for at den største clique'n er først i listen:
9496

9597
(first (sort-by count > test-cliques))
@@ -111,5 +113,4 @@ td-yn")
111113
(sort-by count >)
112114
first
113115
sort
114-
(String/join ",")
115-
time)
116+
(String/join ","))

0 commit comments

Comments
 (0)