|
|
@ -245,7 +245,7 @@ |
|
|
|
(test-case "4 Basic Graph Functions" |
|
|
|
;; 4.1 Breadth-first Search |
|
|
|
(define-values (bfs-lens bfs-tree) (bfs (directed-graph '((a b) (b c))) 'a)) |
|
|
|
(check-equal? (hash->ordered-list bfs-lens) '((c . 2) (a . 0) (b . 1))) |
|
|
|
(check-equal? (hash->ordered-list bfs-lens) '((a . 0) (b . 1) (c . 2))) |
|
|
|
(check-equal? (hash->ordered-list bfs-tree) '((a . #f) (b . a) (c . b)))) |
|
|
|
|
|
|
|
(test-case "10 Graphviz" |
|
|
|