network,build-interaction-graph: Use in-list.

This commit is contained in:
Sergiu Ivanov 2020-11-18 00:13:00 +01:00
parent d190f76fdf
commit af8428d275

View file

@ -511,8 +511,8 @@
(define (build-interaction-graph network doms)
(define vars (hash-keys network))
(unweighted-graph/directed
(for*/list ([x vars]
[y vars]
(for*/list ([x (in-list vars)]
[y (in-list vars)]
#:when (interaction? network doms x y))
(list x y))))